femtopixel/google-chrome-headless
Google Chrome Headless - Docker Image (Multiarch)
100K+
Google Chrome Headless is the Google Chromium browser that can be started without graphical interface to accomplish several tasks (PDF printing, performance, automation...)
docker run --rm --name chrome -it -p 9222:9222 --cap-add SYS_ADMIN femtopixel/google-chrome-headless <optional_args> <optional_site_url>
With <optional_site_url>
url to your site (e.g. http://www.google.com). By default about:blank
. You can pass args BEFORE the url
if you want to use some.
By default, Chrome Headless listen on the 9222
port but this can be changed by passing the CHROME_DEBUG_PORT
environment to the value you want.
docker run --rm --name chrome -it -p 9000:9000 -e CHROME_DEBUG_PORT=9000 femtopixel/google-chrome-headless <optional_args> <optional_site_url>
Using the ever-awesome Jessie Frazelle SECCOMP profile for Chrome, we don't have to use the hammer that is SYS_ADMIN:
wget https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json -O ~/chrome.json
docker run --rm --name chrome -it -p 9222:9222 --security-opt seccomp=$HOME/chrome.json femtopixel/google-chrome-headless <optional_args> <optional_site_url>
docker pull femtopixel/google-chrome-headless