aerokube / selenoid

Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
https://aerokube.com/selenoid/latest/
Apache License 2.0
2.57k stars 322 forks source link

PORTS 127.0.0.1 displayed when running - docker container ls command on macOS #967

Closed Milos88kg closed 6 months ago

Milos88kg commented 4 years ago

Hi! I am trying to implement selenoid in my test project. Have already created test.xml, browsers.json file

Successfully executed docker commands for starting ggr, selenoid and selenoid ui.

I have successfully run some tests on http://test:test-password@'my-ip':4444/wd/hub

The problem is when i execute - docker container ls command, i receive PORTS for all 3 containers to be 127.0.0.1... instead of: my-ip:44444 / my-ip:4445 / my-ip:8080 ?

Here are the screenshots from terminal and test.xml file

Screen Shot 2020-08-10 at 19 57 15 Screen Shot 2020-08-10 at 19 55 18

Thanks! Milos

vania-pooh commented 4 years ago

@Milos88kg I don't think this is a Selenoid \ Ggr issue. Could you please show the command your are using to start one of them?

Milos88kg commented 4 years ago

Selenoid: docker run -d \ --name selenoid \ -p 'my-ip':4445:4444 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v ~/selenoid/config/:/etc/selenoid/:ro \ aerokube/selenoid:latest-release

Ggr: docker run -d --name ggr -v /private/etc/grid-router:/etc/grid-router:ro -p 'my-ip':4444:4444 aerokube/ggr:latest-release

Selenoid-UI: docker run -d --name selenoid-ui --restart always -p 'my-ip':8080:8080 aerokube/selenoid-ui --selenoid-uri=http://'my-ip':4445/

vania-pooh commented 4 years ago

@Milos88kg seems to be correct. I would check Docker documentation regarding this port binding issue. There is nothing special in Selenoid \ Ggr as they also can work as a binary.

Milos88kg commented 4 years ago

Okay, thanks for info

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.