From 2ce1b67e377aca0d17fc5d1f25cb7027565fcdc2 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Thu, 17 Nov 2016 11:47:08 -0800 Subject: [PATCH] Adjust instructions for starting Swarm nodes Fixes #221 --- swarm/install-manual.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/swarm/install-manual.md b/swarm/install-manual.md index ea55acaaf2..83f4f79980 100644 --- a/swarm/install-manual.md +++ b/swarm/install-manual.md @@ -121,20 +121,24 @@ 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 - $ sudo docker run hello-world +4. Verify that Docker Engine is installed correctly by running a container with the + `hello-world` image. - The output should display a "Hello World" message and other text without any - error messages. + $ sudo docker run hello-world + + The output should display a "Hello World" message and other text without any + error messages. 5. Give the `ec2-user` root privileges: - $ sudo usermod -aG docker ec2-user + $ sudo usermod -aG docker ec2-user 6. Enter `logout`. @@ -299,4 +303,4 @@ They will display corresponding entries for the change in leadership. - [High availability in Docker Swarm](multi-manager-setup.md) - [Discovery](discovery.md) - [High-availability cluster using a trio of consul nodes](https://hub.docker.com/r/progrium/consul/) -- [Networking](networking.md) \ No newline at end of file +- [Networking](networking.md)