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).
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.
Can I set the viewport size?
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.
Awesome, could you please share your docker file?
Awesome, could you please share your docker file
Dockerfile please ?
Can you post the Dockerfile?
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?