Public Repository

Last pushed: 18 days ago
Short Description
Headless Chrome
Full Description

This image is built via the script in https://github.com/yukinying/chrome-headless-travis-build

What is this

This is a docker container image for running chrome (headless_shell).

See https://chromium.googlesource.com/chromium/src.git/+/master/headless

How to run it

# for docker 1.10
docker run -i -t --shm-size=256m --rm --name=chrome-headless -p=127.0.0.1:9222:9222 yukinying/chrome-headless https://www.facebook.com
# otherwise
docker run -i -t --rm --name=chrome-headless -p=127.0.0.1:9222:9222 yukinying/chrome-headless  https://www.facebook.com

And then connect to http://localhost:9222 to see the console.

Docker Pull Command
Owner
yukinying

Comments (7)
amakmurr
4 months ago

Can I set the viewport size?

yukinying
9 months ago

Sorry for late response. I did not regularly check the comment section here. The docker file actually takes a compiled binary together with a few resource files, so it is pretty much useless showing it here. Nevertheless, one may "decompile" a docker image via 3rd party service like https://imagelayers.io/?images=yukinying%2Fchrome-headless:57.0.2938.2 . This should give a brief idea on the cmd argument used.

rhjiang
10 months ago

Awesome, could you please share your docker file?

mraj
a year ago

Awesome, could you please share your docker file

udays
a year ago

Dockerfile please ?

eljefederodeodeljefe
a year ago

Can you post the Dockerfile?

svagi
a year ago

Awesome build, thanks. There is only one problem - HTTP/2 connections not working for HTTP/2 enabled sites, all requests falling back to SPDY. I wonder, maybe it's outdated SSL that not supporting ALPN or something else, what do you think @yukinying?