We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running this command:
docker run -d --rm myproject/website . exposes no site on localhost...
docker run -d --rm myproject/website .
but
docker run -d -p 80:80 --rm myproject/website . does.
docker run -d -p 80:80 --rm myproject/website .
Am I just being clueless about how Docker works?
The text was updated successfully, but these errors were encountered:
That's how docker works. Docker won't publish a container's port(s) to the host unless you explicitly say so with the -p parameter.
-p
Sorry, something went wrong.
Add port mapping to the run example
3b22f77
related with #13
No branches or pull requests
Running this command:
docker run -d --rm myproject/website .
exposes no site on localhost...but
docker run -d -p 80:80 --rm myproject/website .
does.Am I just being clueless about how Docker works?
The text was updated successfully, but these errors were encountered: