Doc update to clarify EXPOSE vs -p functionality.
| ... | ... |
@@ -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 |
|