Merge pull request #628 from docker/221_start_swarm_node

Adjust instructions for starting Swarm nodes
This commit is contained in:
Misty Stanley-Jones 2016-11-17 11:54:47 -08:00 committed by GitHub
commit 85aabbdb89
1 changed files with 12 additions and 8 deletions

View File

@ -121,11 +121,15 @@ SSH to each node in turn and do the following.
$ curl -sSL https://get.docker.com/ | sh
3. Configure and start Engine so it listens for Swarm nodes on port `2375`.
3. Edit `/etc/sysconfig/docker` and add `"-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"`
to the `OPTIONS` variable.
$ sudo docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
4. Start Docker.
4. Verify that Docker Engine is installed correctly:
$ sudo /etc/init.d/docker start
4. Verify that Docker Engine is installed correctly by running a container with the
`hello-world` image.
$ sudo docker run hello-world