From 00dcf6acf0c3002de49c6126b6bce947209246e0 Mon Sep 17 00:00:00 2001 From: Amin Cheloh Date: Fri, 21 Oct 2016 06:47:11 +0700 Subject: [PATCH] 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`.