From 00dcf6acf0c3002de49c6126b6bce947209246e0 Mon Sep 17 00:00:00 2001 From: Amin Cheloh Date: Fri, 21 Oct 2016 06:47:11 +0700 Subject: [PATCH 1/3] Update swarm/install-manual.md avoid problem Avoid problem when restart consul container and the IP has been changed --- swarm/install-manual.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/swarm/install-manual.md b/swarm/install-manual.md index b34ae8c78c..b17275b56c 100644 --- a/swarm/install-manual.md +++ b/swarm/install-manual.md @@ -177,9 +177,13 @@ host as one of the Swarm managers. 2. From the output, copy the `eth0` IP address from `inet addr`. -3. Paste the launch command into the command line: +3. To set up a discovery backend, use the following syntax: - $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap + $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise= + + Replacing `` with the IP address from the previous command, for example: + + $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise=172.30.0.161 4. Enter `docker ps`. From ace5a7a95204d0901ec409580fcceae158bbdb89 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Mon, 28 Nov 2016 14:27:55 -0800 Subject: [PATCH 2/3] s/syntax/command --- swarm/install-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/install-manual.md b/swarm/install-manual.md index b17275b56c..cde86481c1 100644 --- a/swarm/install-manual.md +++ b/swarm/install-manual.md @@ -177,7 +177,7 @@ host as one of the Swarm managers. 2. From the output, copy the `eth0` IP address from `inet addr`. -3. To set up a discovery backend, use the following syntax: +3. To set up a discovery backend, use the following command: $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise= From d621663c6fd4a22086c504bde76f39909f38e8e4 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Mon, 28 Nov 2016 14:28:42 -0800 Subject: [PATCH 3/3] Removing superfluous example command --- swarm/install-manual.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/swarm/install-manual.md b/swarm/install-manual.md index cde86481c1..b3da7d7493 100644 --- a/swarm/install-manual.md +++ b/swarm/install-manual.md @@ -177,13 +177,9 @@ host as one of the Swarm managers. 2. From the output, copy the `eth0` IP address from `inet addr`. -3. To set up a discovery backend, use the following command: +3. To set up a discovery backend, use the following command, replacing `` with the IP address from the previous command: $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise= - - Replacing `` with the IP address from the previous command, for example: - - $ docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap -advertise=172.30.0.161 4. Enter `docker ps`.