Signed-off-by: Mike Brown <brownwm@us.ibm.com>
| ... | ... |
@@ -484,17 +484,15 @@ To view an image's labels, use the `docker inspect` command. |
| 484 | 484 |
|
| 485 | 485 |
EXPOSE <port> [<port>...] |
| 486 | 486 |
|
| 487 |
-The `EXPOSE` instructions informs Docker that the container will listen on the |
|
| 488 |
-specified network ports at runtime. Docker uses this information to interconnect |
|
| 489 |
-containers using links (see the [Docker User |
|
| 490 |
-Guide](../userguide/dockerlinks.md) and to determine which ports to expose to the |
|
| 491 |
-host when [using the -P flag](run.md#expose-incoming-ports). |
|
| 492 |
- |
|
| 493 |
-> **Note**: |
|
| 494 |
-> `EXPOSE` doesn't define which ports can be exposed to the host or make ports |
|
| 495 |
-> accessible from the host by default. To expose ports to the host, at runtime, |
|
| 496 |
-> [use the `-p` flag](../userguide/dockerlinks.md) or |
|
| 497 |
-> [the -P flag](run.md#expose-incoming-ports). |
|
| 487 |
+The `EXPOSE` instruction informs Docker that the container listens on the |
|
| 488 |
+specified network ports at runtime. `EXPOSE` does not make the ports of the |
|
| 489 |
+container accessible to the host. To do that, you must use either the `-p` flag |
|
| 490 |
+to publish a range of ports or the `-P` flag to publish all of the exposed ports. |
|
| 491 |
+You can expose one port number and publish it externally under another number. |
|
| 492 |
+ |
|
| 493 |
+Docker uses exposed and published ports to interconnect containers using links |
|
| 494 |
+(see [Linking containers together](../userguide/dockerlinks.md)) |
|
| 495 |
+and to set up port redirection on the host system when [using the -P flag](run.md#expose-incoming-ports). |
|
| 498 | 496 |
|
| 499 | 497 |
## ENV |
| 500 | 498 |
|
| ... | ... |
@@ -185,7 +185,7 @@ A Dockerfile is similar to a Makefile. |
| 185 | 185 |
-- `EXPOSE <port> [<port>...]` |
| 186 | 186 |
The **EXPOSE** instruction informs Docker that the container listens on the |
| 187 | 187 |
specified network ports at runtime. Docker uses this information to |
| 188 |
- interconnect containers using links, and to set up port redirection on the host |
|
| 188 |
+ interconnect containers using links and to set up port redirection on the host |
|
| 189 | 189 |
system. |
| 190 | 190 |
|
| 191 | 191 |
**ENV** |
| ... | ... |
@@ -223,7 +223,10 @@ ENTRYPOINT. |
| 223 | 223 |
Read in a line delimited file of environment variables |
| 224 | 224 |
|
| 225 | 225 |
**--expose**=[] |
| 226 |
- Expose a port, or a range of ports (e.g. --expose=3300-3310), from the container without publishing it to your host |
|
| 226 |
+ Expose a port, or a range of ports (e.g. --expose=3300-3310) informs Docker |
|
| 227 |
+that the container listens on the specified network ports at runtime. Docker |
|
| 228 |
+uses this information to interconnect containers using links and to set up port |
|
| 229 |
+redirection on the host system. |
|
| 227 | 230 |
|
| 228 | 231 |
**--group-add**=[] |
| 229 | 232 |
Add additional groups to run as |