Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'-P' option doesn't forward hub container exposed port #16

Closed
danggrianto opened this issue Dec 4, 2014 · 1 comment
Closed

'-P' option doesn't forward hub container exposed port #16

danggrianto opened this issue Dec 4, 2014 · 1 comment

Comments

@danggrianto
Copy link

when i run this command docker run -P -d --name selenium-hub selenium/hub i cant access hub console. I did this command instead docker run -d -p 4444:4444 --name selenium-hub selenium/hub and i can access the console at localhost:4444

@mtscout6
Copy link
Member

mtscout6 commented Dec 4, 2014

See the docker documentation on docker run -P

When using -P, Docker will bind the exposed ports to a random port on the host between 49153 and 65535. To find the mapping between the host ports and the exposed ports, use docker port.

@mtscout6 mtscout6 closed this as completed Dec 4, 2014
@lock lock bot locked and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants