Caution
As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.
Note
(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)
Tip
THIS REPOSITORY IS AUTO-UPDATED BY A BOT WHEN A NEW GOOGLE CHROME RELEASE IS UNLEASHED
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 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>
You may need to add security context to your usage by adding --cap-add SYS_ADMIN
docker run --rm --name chrome -it -p 9222:9222 --cap-add SYS_ADMIN femtopixel/google-chrome-headless
or Jessie Frazelle SECCOMP profile for Chrome:
wget https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json -O ~/chrome.json
docker run --rm --name chrome -it --security-opt seccomp=$HOME/chrome.json femtopixel/google-chrome-headless