update node_ip

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2014-12-08 21:22:12 +00:00
parent d6e91bba23
commit e4655e1128
1 changed files with 11 additions and 11 deletions

View File

@ -10,11 +10,12 @@ Like the other Docker projects, `swarm` follows the "batteries included but remo
### Installation
######1 - Download and install the current source code.
```sh
go get -u github.com/docker/swarm
```
######3 - Nodes setup
######2 - Nodes setup
The only requirement for Swarm nodes is to run a regular Docker daemon.
In order for Swarm to be able to communicate with its nodes, they must bind on a network interface.
@ -31,24 +32,23 @@ $ swarm create
6856663cdefdec325839a4b7e1de38e8
# on each of your nodes, start the swarm agent
$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr=<public_node_ip:2375>
...
# <node_ip> doesn't have to be public (eg. 192.168.0.X),
# as long as the other nodes can reach it, it is fine.
$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr=<node_ip:2375>
# start the manager on any machine or your laptop
$ swarm manage --token=6856663cdefdec325839a4b7e1de38e8 --addr=<swarm_ip:2375>
$ swarm manage --token=6856663cdefdec325839a4b7e1de38e8 --addr=<swarm_ip:swarm_port>
# use the regular docker cli
$ docker -H <swarm_ip:2375> info
$ docker -H <swarm_ip:2375> run ...
$ docker -H <swarm_ip:2375> ps
$ docker -H <swarm_ip:2375> logs ...
$ docker -H <swarm_ip:swarm_port> info
$ docker -H <swarm_ip:swarm_port> run ...
$ docker -H <swarm_ip:swarm_port> ps
$ docker -H <swarm_ip:swarm_port> logs ...
...
# list nodes in your cluster
$ swarm list --token=6856663cdefdec325839a4b7e1de38e8
http://<public_node_ip1:2375>
http://<public_node_ip2:2375>
http://<public_node_ip3:2375>
http://<node_ip:2375>
```
## Participating