Headless Chrome in Docker using Xvfb
Simple problem: setting the DISPLAY environment variable for the call is not enough when running Chrome. Also have to pass a flag to disable GPU since docker doesn't have access to it and disable sandboxing.I have to export display:
export DISPLAY=:0Xvfb :0 -screen 0 1024x768x24 &google-chrome --disable-gpu --no-sandbox http://mytestpage.com