mirror of https://github.com/docker/docs.git
Merge pull request #392 from aluzzardi/doc-fix-port-binding
README: Fix port binding in example.
This commit is contained in:
commit
12e1b047e7
|
|
@ -59,7 +59,7 @@ $ docker run --rm swarm create
|
||||||
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
|
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
|
||||||
|
|
||||||
# start the manager on any machine or your laptop
|
# start the manager on any machine or your laptop
|
||||||
$ docker run -t -p 2375:<swarm_port> -t swarm manage token://<cluster_id>
|
$ docker run -t -p <swarm_port>:2375 -t swarm manage token://<cluster_id>
|
||||||
|
|
||||||
# use the regular docker cli
|
# use the regular docker cli
|
||||||
$ docker -H tcp://<swarm_ip:swarm_port> info
|
$ docker -H tcp://<swarm_ip:swarm_port> info
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ $ docker run --rm swarm create
|
||||||
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
|
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
|
||||||
|
|
||||||
# start the manager on any machine or your laptop
|
# start the manager on any machine or your laptop
|
||||||
$ docker run -t -p 2375:<swarm_port> -t swarm manage token://<cluster_id>
|
$ docker run -t -p <swarm_port>:2375 -t swarm manage token://<cluster_id>
|
||||||
|
|
||||||
# use the regular docker cli
|
# use the regular docker cli
|
||||||
$ docker -H tcp://<swarm_ip:swarm_port> info
|
$ docker -H tcp://<swarm_ip:swarm_port> info
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue