Last active
July 2, 2021 20:07
-
-
Save jhollinger/a111bba6a9ee7737e7e6451c895fbf15 to your computer and use it in GitHub Desktop.
Remote Headless Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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