diff --git a/README.md b/README.md index 708d4d4f14..07e43c3f17 100644 --- a/README.md +++ b/README.md @@ -10,17 +10,12 @@ Like the other Docker projects, `swarm` follows the "batteries included but remo ### Installation -######1 - Download the current source code. +######1 - Download and install the current source code. ```sh -go get github.com/docker/swarm +go get -u github.com/docker/swarm ``` -######2 - Compile and install `swarm` -```sh -go install 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. @@ -37,26 +32,23 @@ $ swarm create 6856663cdefdec325839a4b7e1de38e8 # on each of your nodes, start the swarm agent -$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr= -$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr= -$ swarm join --token=6856663cdefdec325839a4b7e1de38e8 --addr= -... +# 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= # start the manager on any machine or your laptop -$ swarm manage --token=6856663cdefdec325839a4b7e1de38e8 --addr= +$ swarm manage --token=6856663cdefdec325839a4b7e1de38e8 --addr= # use the regular docker cli -$ docker -H info -$ docker -H run ... -$ docker -H ps -$ docker -H logs ... +$ docker -H info +$ docker -H run ... +$ docker -H ps +$ docker -H logs ... ... # list nodes in your cluster $ swarm list --token=6856663cdefdec325839a4b7e1de38e8 -http:// -http:// -http:// +http:// ``` ## Participating