Merge pull request #392 from aluzzardi/doc-fix-port-binding

README: Fix port binding in example.
This commit is contained in:
Victor Vieux 2015-02-11 23:02:41 -08:00
commit 12e1b047e7
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ $ docker run --rm swarm create
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
# 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
$ docker -H tcp://<swarm_ip:swarm_port> info

View File

@ -52,7 +52,7 @@ $ docker run --rm swarm create
$ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id>
# 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
$ docker -H tcp://<swarm_ip:swarm_port> info