Added docker swarm init to tutorial (#2994)

* Added docker swarm init to tutorial

* Update part3.md
This commit is contained in:
Steven Hanna 2017-04-21 17:25:42 -04:00 committed by John Mulhausen
parent b4f82bfbcc
commit 7b7cf3e229
1 changed files with 9 additions and 4 deletions

View File

@ -95,6 +95,15 @@ This `docker-compose.yml` file tells Docker to do the following:
## Run your new load-balanced app
Before we can use the `docker stack deploy` command we'll first run
```
docker swarm init
```
>**Note**: We'll get into the meaning of that command in [part 4](part4.md).
> If you don't run `docker swarm init` you'll get an error that "this node is not a swarm manager."
Now let's run it. You have to give your app a name -- here it is set to
`getstartedlab` :
@ -102,10 +111,6 @@ Now let's run it. You have to give your app a name -- here it is set to
docker stack deploy -c docker-compose.yml getstartedlab
```
> **Note**: If you get an error that "this node is not a swarm manager," go
ahead and run `docker swarm init` and then retry. We'll get into the meaning
of that command in [part 4](part4.md).
See a list of the five containers you just launched:
```