mirror of https://github.com/docker/docs.git
Added docker swarm init to tutorial (#2994)
* Added docker swarm init to tutorial * Update part3.md
This commit is contained in:
parent
b4f82bfbcc
commit
7b7cf3e229
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue