Explicitly mention that '-P' maps to random ports

as noted in https://github.com/boot2docker/boot2docker/issues/690

Signed-off-by: Sven Dowideit <SvenDowideit@docker.com>

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
Upstream-commit: 7b2331061e428176cf513487745ac496e2bd7027
Component: engine
This commit is contained in:
Sven Dowideit
2015-01-06 17:01:10 +10:00
parent 5c16882688
commit 4bf864f7fb
5 changed files with 7 additions and 7 deletions

View File

@ -118,7 +118,7 @@ IMAGE [COMMAND] [ARG...]
'host': use the host network stack inside the container. Note: the host mode gives the container full access to local system services such as D-bus and is therefore considered insecure.
**-P**, **--publish-all**=*true*|*false*
Publish all exposed ports to the host interfaces. The default is *false*.
Publish all exposed ports to random ports on the host interfaces. The default is *false*.
**-p**, **--publish**=[]
Publish a container's port, or a range of ports, to the host

View File

@ -214,7 +214,7 @@ and foreground Docker containers.
'host': use the host network stack inside the container. Note: the host mode gives the container full access to local system services such as D-bus and is therefore considered insecure.
**-P**, **--publish-all**=*true*|*false*
Publish all exposed ports to the host interfaces. The default is *false*.
Publish all exposed ports to random ports on the host interfaces. The default is *false*.
When set to true publish all exposed ports to the host interfaces. The
default is false. If the operator uses -P (or -p) then Docker will make the