Browse code

Merge pull request #8281 from dfarrell07/master

Doc update to clarify EXPOSE vs -p functionality.

Fred Lifton authored on 2014/09/30 10:55:11
Showing 1 changed files
... ...
@@ -273,7 +273,10 @@ default specified in `CMD`.
273 273
 The `EXPOSE` instructions informs Docker that the container will listen on the
274 274
 specified network ports at runtime. Docker uses this information to interconnect
275 275
 containers using links (see the [Docker User
276
-Guide](/userguide/dockerlinks)).
276
+Guide](/userguide/dockerlinks)). Note that `EXPOSE` only works for
277
+inter-container links. It doesn't make ports accessible from the host. To
278
+expose ports to the host, at runtime, 
279
+[use the `-p` flag](/userguide/dockerlinks).
277 280
 
278 281
 ## ENV
279 282