Explorar o código

Merge pull request #8281 from dfarrell07/master

Doc update to clarify EXPOSE vs -p functionality.
Fred Lifton %!s(int64=10) %!d(string=hai) anos
pai
achega
8128339bc8
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      docs/sources/reference/builder.md

+ 4 - 1
docs/sources/reference/builder.md

@@ -273,7 +273,10 @@ default specified in `CMD`.
 The `EXPOSE` instructions informs Docker that the container will listen on the
 The `EXPOSE` instructions informs Docker that the container will listen on the
 specified network ports at runtime. Docker uses this information to interconnect
 specified network ports at runtime. Docker uses this information to interconnect
 containers using links (see the [Docker User
 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
 ## ENV