Fixed #5282 - deprecated -name syntax
Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01) Upstream-commit: a75758fcf648ed22fe979cbb625c209a92c5d873 Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user