Original: https://github.com/justinribeiro/dockerfiles, This repo tags: `dockerfileVer-chromeVer`
8.6K
Note this is copy of original at https://github.com/justingribeiro/chrome-headless The purpose of this copy is to automate the builds and track chrome browser updates with tags according to internal project needs, spiker labs does not claim the rights of this code
What was once a container using the experimental build of headless_shell from tip, this container now runs and exposes stable Chrome headless via google-chome --headless.
wget https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json -O ~/chrome.jsondocker run -d -p 9222:9222 --cap-add=SYS_ADMIN justinribeiro/chrome-headless
docker run -d -p 9222:9222 --security-opt seccomp=$HOME/chrome.json justinribeiro/chrome-headless
Open Chrome and browse to http://localhost:9222/.
docker run -d -p 9222:9222 justinribeiro/chrome-headless
Open Chrome and browse to http://localhost:9222/.
#Known issues
You may have to Load unsafe scripts from the omnibox shield icon to allow connecting to the insecure websocket endpoint ws://localhost:9222:

Depending on the current build, if you run the container interactively you may see things like this on the console:
[0501/162901.033074:WARNING:audio_manager.cc(295)] Multiple instances of AudioManager detected
[0501/162901.033169:WARNING:audio_manager.cc(254)] Multiple instances of AudioManager detected
In most cases, these messages can be safely ignored. They will sometimes change and eventually as things are updated in the source tree, resolved.
Content type
Image
Digest
Size
212.1 MB
Last updated
almost 9 years ago
docker pull spikerlabs/chrome-headless