diff --git a/get-started/part3.md b/get-started/part3.md index 28c3f26ce7..09768fb913 100644 --- a/get-started/part3.md +++ b/get-started/part3.md @@ -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: ```