mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed #5282 - deprecated -name syntax
Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
This commit is contained in:
parent
58595475ea
commit
a75758fcf6
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ port on the host machine bound to a given container port. It is useful
|
|||
when using dynamically allocated ports:
|
||||
|
||||
# Bind to a dynamically allocated port
|
||||
docker run -p 127.0.0.1::8080 -name dyn-bound <image> <cmd>
|
||||
docker run -p 127.0.0.1::8080 --name dyn-bound <image> <cmd>
|
||||
|
||||
# Lookup the actual port
|
||||
docker port dyn-bound 8080
|
||||
|
|
Loading…
Reference in a new issue