Update swarm/install-manual.md avoid problem

Avoid problem when restart consul container and the IP has been changed
This commit is contained in:
Amin Cheloh 2016-10-21 06:47:11 +07:00 committed by GitHub
parent d56ab935d9
commit 00dcf6acf0
1 changed files with 6 additions and 2 deletions

View File

@ -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=<consul0_ip>
Replacing `<consul0_ip>` 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`.