Try to run docker image of chrome-headless as provided by Justin on macOS

730 views
Skip to first unread message

Marvin N.

unread,
Dec 21, 2016, 4:06:24 PM12/21/16
to headless-dev
Hi Justin, Kevin,

I am trying to run the docker image of  chrome-headless as provided by Justin on macOS. I am new to Docker and unsure about how to run chrome-headless-docker-image with the UI.

My questions are:

1. Do I need to run chrome-headless docker image on a full Ubuntu desktop machine to see the UI?

2. Is there a way to do the same on MacOS?

3. Do you run yours on Ubuntu, or MacOS, or Windows?

Thanks,

Marvin

burtona...@gmail.com

unread,
Dec 21, 2016, 4:20:40 PM12/21/16
to headless-dev
I run on Ubuntu.. once the port is forwarded just go to localhost:9222

I have no advise regarding MacOS though.

Justin Ribeiro

unread,
Dec 21, 2016, 4:26:24 PM12/21/16
to Marvin N., headless-dev
Hi Marvin,

1. Do I need to run chrome-headless docker image on a full Ubuntu desktop machine to see the UI?

No. The container doesn't have a UI; it simply binds locally to localhost:9222 which you can access in Chrome.

2. Is there a way to do the same on MacOS?

You can run the container on MacOS. If you've installed current version of Docker for Mac, you can simply run on the command line to install:

docker pull justinribeiro/chrome-headless

Then run as normal (in this case, bound to localhost:9222 and run in the background)
docker run -d -p 9222:9222 justinribeiro/chrome-headless

3. Do you run yours on Ubuntu, or MacOS, or Windows?

I test the container on various Linux's and MacOS. Windows is on my list to add to testing.

Cheers, Justin

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/6659e689-3b16-477f-ad93-880b7922266a%40chromium.org.

Marvin N.

unread,
Dec 21, 2016, 4:39:05 PM12/21/16
to Justin Ribeiro, burtona...@gmail.com, Marvin @Gmail, headless-dev
Hi Justin, Kevin,

Thanks for your feedback. I will try the container with Chrome on MacOs.

Marvin
Reply all
Reply to author
Forward
0 new messages