Doc update to clarify EXPOSE vs -p functionality.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Upstream-commit: 5730abc16728404c328b896c893f9487effbec55
Component: engine
This commit is contained in:
Daniel Farrell
2014-09-28 19:45:41 -04:00
parent ffcbd2813b
commit aa28ecc957

View File

@ -268,7 +268,10 @@ default specified in `CMD`.
The `EXPOSE` instructions informs Docker that the container will listen on the
specified network ports at runtime. Docker uses this information to interconnect
containers using links (see the [Docker User
Guide](/userguide/dockerlinks)).
Guide](/userguide/dockerlinks)). Note that `EXPOSE` only works for
inter-container links. It doesn't make ports accessible from the host. To
expose ports to the host, at runtime,
[use the `-p` flag](/userguide/dockerlinks).
## ENV