|
@@ -310,13 +310,13 @@ page. There are two approaches.
|
|
First, you can supply `-P` or `--publish-all=true|false` to `docker run`
|
|
First, you can supply `-P` or `--publish-all=true|false` to `docker run`
|
|
which is a blanket operation that identifies every port with an `EXPOSE`
|
|
which is a blanket operation that identifies every port with an `EXPOSE`
|
|
line in the image's `Dockerfile` and maps it to a host port somewhere in
|
|
line in the image's `Dockerfile` and maps it to a host port somewhere in
|
|
-the range 49000–49900. This tends to be a bit inconvenient, since you
|
|
|
|
|
|
+the range 49153–65535. This tends to be a bit inconvenient, since you
|
|
then have to run other `docker` sub-commands to learn which external
|
|
then have to run other `docker` sub-commands to learn which external
|
|
port a given service was mapped to.
|
|
port a given service was mapped to.
|
|
|
|
|
|
More convenient is the `-p SPEC` or `--publish=SPEC` option which lets
|
|
More convenient is the `-p SPEC` or `--publish=SPEC` option which lets
|
|
you be explicit about exactly which external port on the Docker server —
|
|
you be explicit about exactly which external port on the Docker server —
|
|
-which can be any port at all, not just those in the 49000–49900 block —
|
|
|
|
|
|
+which can be any port at all, not just those in the 49153-65535 block —
|
|
you want mapped to which port in the container.
|
|
you want mapped to which port in the container.
|
|
|
|
|
|
Either way, you should be able to peek at what Docker has accomplished
|
|
Either way, you should be able to peek at what Docker has accomplished
|