question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation about puppeteer in Docker only works on x86_64

See original GitHub issue

Steps to reproduce

Tell us about your environment:

What steps will reproduce the problem? Visit https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker, notice the following line:

RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
    && apt-get update \
    && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
      --no-install-recommends \
    && rm -rf /var/lib/apt/lists/*

in particular, notice this:

sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

This does not work on ARM ([arch=amd64]), though this is mentioned nowhere in the documentation.

What is the expected result? The documentation makes clear that this only works on x86_64, or, even better, the documentation gives instructions for puppeteer in docker on ARM.

What happens instead? The documentation is incomplete.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
FezVrastacommented, Dec 1, 2020

What’s the situation now that Apple switched to ARM? Any chance we’ll be able to run Puppeteer on a Docker container on Apple Silicon?

0reactions
stale[bot]commented, Aug 30, 2022

We’re marking this issue as unconfirmed because it has not had recent activity and we weren’t able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js + Puppeteer on Docker, No usable sandbox
Yes, It should work, if this is a puppetteer functionality, as this method only enables sandbox for launched browser. Anyway I suggest using ......
Read more >
Troubleshooting - Puppeteer
Getting headless Chrome up and running in Docker can be tricky. The bundled Chromium that Puppeteer installs is missing the necessary shared library ......
Read more >
Docker frequently asked questions (FAQ)
The Docker platform runs natively on Linux (on x86-64, ARM and many other CPU ... so new versions of a container can be...
Read more >
What will happen running x86-64 & ARM-based Docker ...
In this video, we will discuss What will happen running x86-64 & ARM-based Docker containers in Apple M1?
Read more >
How to use Puppeteer inside a Docker container
Introduction Puppeteer is a Node.js library which provides a high-level API ... the necessary libs to make the browser work with Puppeteer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found