When I try to run:
google-chrome --headless --disable-gpu --repl http://google.com
getting infinite:
[0829/155519.758686:IN
type this
alias chrome=/opt/google/chrome/chrome
then use chrome
chrome --headless --disable-gpu --repl http://google.com
Use the binary /opt/google/chrome/chrome directly not google-chrome which points to bash script /usr/bin/google-chrome.
Taken from comments in
https://developers.google.com/web/updates/2017/04/headless-chrome#screenshots