In this docker image, chrome will run as root, so use '--no-sandbox' option while starting puppeteer.
const puppeteer = require('puppeteer');
puppeteer.launch({ args: ['--no-sandbox'] });
node-6 Dockerimage with puppeteer as global npm module and its dependencies
In this docker image, chrome will run as root, so use '--no-sandbox' option while starting puppeteer.
const puppeteer = require('puppeteer');
puppeteer.launch({ args: ['--no-sandbox'] });