Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
| ... | ... |
@@ -310,13 +310,13 @@ page. There are two approaches. |
| 310 | 310 |
First, you can supply `-P` or `--publish-all=true|false` to `docker run` |
| 311 | 311 |
which is a blanket operation that identifies every port with an `EXPOSE` |
| 312 | 312 |
line in the image's `Dockerfile` and maps it to a host port somewhere in |
| 313 |
-the range 49000–49900. This tends to be a bit inconvenient, since you |
|
| 313 |
+the range 49153–65535. This tends to be a bit inconvenient, since you |
|
| 314 | 314 |
then have to run other `docker` sub-commands to learn which external |
| 315 | 315 |
port a given service was mapped to. |
| 316 | 316 |
|
| 317 | 317 |
More convenient is the `-p SPEC` or `--publish=SPEC` option which lets |
| 318 | 318 |
you be explicit about exactly which external port on the Docker server — |
| 319 |
-which can be any port at all, not just those in the 49000–49900 block — |
|
| 319 |
+which can be any port at all, not just those in the 49153-65535 block — |
|
| 320 | 320 |
you want mapped to which port in the container. |
| 321 | 321 |
|
| 322 | 322 |
Either way, you should be able to peek at what Docker has accomplished |
| ... | ... |
@@ -26,8 +26,8 @@ container that ran a Python Flask application: |
| 26 | 26 |
> information on Docker networking [here](/articles/networking/). |
| 27 | 27 |
|
| 28 | 28 |
When that container was created, the `-P` flag was used to automatically map any |
| 29 |
-network ports inside it to a random high port from the range 49000 |
|
| 30 |
-to 49900 on our Docker host. Next, when `docker ps` was run, you saw that |
|
| 29 |
+network ports inside it to a random high port from the range 49153 |
|
| 30 |
+to 65535 on our Docker host. Next, when `docker ps` was run, you saw that |
|
| 31 | 31 |
port 5000 in the container was bound to port 49155 on the host. |
| 32 | 32 |
|
| 33 | 33 |
$ sudo docker ps nostalgic_morse |
| ... | ... |
@@ -157,7 +157,7 @@ port) on port 49155. |
| 157 | 157 |
|
| 158 | 158 |
Network port bindings are very configurable in Docker. In our last |
| 159 | 159 |
example the `-P` flag is a shortcut for `-p 5000` that maps port 5000 |
| 160 |
-inside the container to a high port (from the range 49000 to 49900) on |
|
| 160 |
+inside the container to a high port (from the range 49153 to 65535) on |
|
| 161 | 161 |
the local Docker host. We can also bind Docker containers to specific |
| 162 | 162 |
ports using the `-p` flag, for example: |
| 163 | 163 |
|