HUB
Sign inSign up
google-chrome-headless logo

femtopixel/google-chrome-headless

Sponsored OSS

By FemtoPixel

•Updated 14 days ago

Google Chrome Headless - Docker Image (Multiarch)

Image
Integration & delivery
Monitoring & observability
14

100K+

femtopixel/google-chrome-headless repository overview

Github⁠ Issues⁠

⁠Google Chrome Headless - Docker Image

latest release Docker Pulls Docker Stars PayPal donation Buy me a coffee Buy 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> 
Tag summary
Recent tags
Content type
Image
Digest
sha256:6e9d2f39b…
Size
542.4 MB
Last updated
14 days ago
docker pull femtopixel/google-chrome-headless:latest
This week's pulls