Id like to create a docker image that scrapes some sites using python code.
I use x11vnc for a virtual monitor, firefox-esr as browser and nodriver as python scraper.
Actually I can start a container and I can see the virtual monitor through TightVNC. I can start firefox-esr from interactive shell but if I use nodriver, passing /usr/bin/firefox-esr as executable path, it can’t start browser and raise
---------------------
Failed to connect to browser
---------------------
One of the causes could be when you are running as root.
In that case you need to pass no_sandbox=True
Anyone can help me, please?