From b5b6cd783b7d19dee9bf636181d1bd0357149b3e Mon Sep 17 00:00:00 2001 From: Viet Hung Nguyen Date: Wed, 18 Jan 2017 15:17:12 +0700 Subject: [PATCH 1/2] Clarify the command only for docker-machine or it can confuse user that does not use docker-machine (i.e on Linux) --- engine/swarm/swarm-tutorial/create-swarm.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/swarm/swarm-tutorial/create-swarm.md b/engine/swarm/swarm-tutorial/create-swarm.md index 54ac9d056ea..3138c4428b7 100644 --- a/engine/swarm/swarm-tutorial/create-swarm.md +++ b/engine/swarm/swarm-tutorial/create-swarm.md @@ -9,7 +9,8 @@ to create a swarm. Make sure the Docker Engine daemon is started on the host machines. 1. Open a terminal and ssh into the machine where you want to run your manager -node. For example, the tutorial uses a machine named `manager1`. +node. For example, the tutorial uses a machine named `manager1`, +if you are using Docker Machine, you can run: ```bash docker-machine ssh manager1 From 18ab0409ecd5395bbe34ee0c08f5962e8ec6506a Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Wed, 18 Jan 2017 15:06:49 -0800 Subject: [PATCH 2/2] Update create-swarm.md --- engine/swarm/swarm-tutorial/create-swarm.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/swarm/swarm-tutorial/create-swarm.md b/engine/swarm/swarm-tutorial/create-swarm.md index 3138c4428b7..53bd13d3779 100644 --- a/engine/swarm/swarm-tutorial/create-swarm.md +++ b/engine/swarm/swarm-tutorial/create-swarm.md @@ -9,11 +9,11 @@ to create a swarm. Make sure the Docker Engine daemon is started on the host machines. 1. Open a terminal and ssh into the machine where you want to run your manager -node. For example, the tutorial uses a machine named `manager1`, -if you are using Docker Machine, you can run: + node. This tutorial uses a machine named `manager1`. If you use Docker Machine, + you can connect to it via SSH using the following command: ```bash - docker-machine ssh manager1 + $ docker-machine ssh manager1 ``` 2. Run the following command to create a new swarm: