mirror of https://github.com/docker/docs.git
changed deprecated -name option to --name
changed deprecated -name option to --name
This commit is contained in:
parent
4af465fccf
commit
2d622df835
|
@ -40,7 +40,7 @@ Build the image using:
|
||||||
Then run it. You can then use `docker port` to find
|
Then run it. You can then use `docker port` to find
|
||||||
out what host port the container's port 22 is mapped to:
|
out what host port the container's port 22 is mapped to:
|
||||||
|
|
||||||
$ sudo docker run -d -P -name test_sshd eg_sshd
|
$ sudo docker run -d -P --name test_sshd eg_sshd
|
||||||
$ sudo docker port test_sshd 22
|
$ sudo docker port test_sshd 22
|
||||||
0.0.0.0:49154
|
0.0.0.0:49154
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue