error while loading shared libraries:


I use to run an image.

I use image: node:latest as the image, but once I try to start puppeteer, it get this error message: error while loading shared libraries:

I do already set the flags: --no-sandbox and --disable-setuid-sandbox on puppeteer.launch

Do someone have an idea what image i could use instead?

The solution was to make my own dockerfile with the needed libs

@tujoworker how did you build the container, is the the same as in puppeteer troubleshooting

Also how did you run that in the docker steps.

Thanks in advance.

I end up installing all the required libraries in my pipeline steps by running:

  • apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

Then i added --no-sandbox to the puppeteer browser options.