-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Description of EXPOSE instruction is unclear #1499
Comments
Since UCP already configures engine-discovery, there is no need to mention this on the deploy app docs. Fixes docker#1499
Since UCP already configures engine-discovery, there is no need to mention this on the deploy app docs. Fixes docker#1499
dibs for the hackathon |
No action for two days, so this is up for grabs! However, this may have been addressed by #2882 |
@mstanleyjones looks as though #2882 does address this:
noop? |
Thanks @clocklear |
The doc here: https://docs.docker.com/engine/reference/builder/#expose is still very misleading. The sentence "Exposing ports is a way of documenting which ports are used, but does not actually map or open any ports. Exposing ports is optional." is very clear IMHO and should be put there. This issue should be re-opened... |
@sarusso sorry, the doc you reference is actually sourced straight from the docker/cli repository so is you think that the file should be changed, the issue needs to be raised there. @johndmulhausen can we re-fix it so that the "Report an issue" for these external topics goes to the right place again? |
@mstanleyjones is it? The readme of this repository states on the first line that "this is the source for https://docs.docker.com", which is the source of the document I referenced. Why this inconsistency then? |
If you look in our repository you will see that we don't have the corresponding Markdown file in our repository at all. We fetch it as part of our build process (see the script). Also, if you look at the source of the file in the
|
@mstanleyjones Look, I saw a issue with the doc, wanted to help/contribute, found this issue here (which was started as an issue referencing the same doc I did by the way), I double-checked on the readme if I were in the right place, and discovered after commenting that I was actually in the wrong one. I did not dig into the repo to triple-check, and I honestly don't think that it should have been my responsibility to do so. There is no need to prove me wrong, just take it as a feedback from a user (me): it is not clear. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
Problem description
I can't figure out when I would ever need to EXPOSE a port. the docs say:
But why do I need to inform Docker about which network ports a container will listen to at runtime? I apparently don't need to expose a port to publish it at runtime (or do I?). I also apparently don't need to expose a port to have Docker containers communicate over a Docker network (or do I?).
Apparently, it was once required for legacy Docker links, but those have been deprecated, so should this be deprecated? If not, why not?
Problem location
Suggestions for a fix
As best as I can tell, the only real purpose EXPOSE has is to document in the Dockerfile which port the service is listening on. If that is the case, I would suggest something like:
If that's not true, please clarify!
The text was updated successfully, but these errors were encountered: