Introducing our new CEO Don Johnson - Read More

femtopixel/google-chrome-headless

Sponsored OSS

By FemtoPixel

Updated 7 days ago

Google Chrome Headless - Docker Image (Multiarch)

Image
Integration & Delivery
Monitoring & Observability
13

100K+

GithubIssues

Google Chrome Headless - Docker Image

latest releaseDocker PullsDocker StarsPayPal donationBuy me a coffeeBuy me a coffee

Google Chrome Headless is the Google Chromium browser that can be started without graphical interface to accomplish several tasks (PDF printing, performance, automation...)

Usage

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.

Example
docker run --rm --name chrome -it -p 9000:9000 -e CHROME_DEBUG_PORT=9000 femtopixel/google-chrome-headless <optional_args> <optional_site_url> 

Usage : Improved

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 Command

docker pull femtopixel/google-chrome-headless