Skip to content

Instantly share code, notes, and snippets.

@jhollinger
Last active July 2, 2021 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhollinger/a111bba6a9ee7737e7e6451c895fbf15 to your computer and use it in GitHub Desktop.
Save jhollinger/a111bba6a9ee7737e7e6451c895fbf15 to your computer and use it in GitHub Desktop.
Remote Headless Chrome
#
# Easiest. If this doesn't work right, try manual.sh
#
docker run --rm -it -p=0.0.0.0:9222:9222 alpeware/chrome-headless-trunk
# Then open local Chrome go to localhost:9222, then to chrome://inspect. From there you can open new tabs and inspect them.
docker run --rm -it -p=0.0.0.0:9222:9222 alpeware/chrome-headless-trunk bash
# Inside the container run:
google-chrome-unstable \
--disable-gpu --headless --no-sandbox \
--remote-debugging-address=0.0.0.0 \
--remote-debugging-port=9222
# Then open local Chrome go to localhost:9222, then to chrome://inspect. From there you can open new tabs and inspect them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment