1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20691 from vincentbernat/doc/simplify-overlay

docs: simplify some steps of the overlay network guide
This commit is contained in:
Vincent Demeester 2016-02-25 13:31:13 +01:00
commit 41f2a674b8

View file

@ -55,21 +55,20 @@ key-value stores. This example uses Consul.
instance using the [consul image from Docker
Hub](https://hub.docker.com/r/progrium/consul/). You'll do this in the next step.
3. Start a `progrium/consul` container running on the `mh-keystore` machine.
3. Set your local environment to the `mh-keystore` machine.
$ docker $(docker-machine config mh-keystore) run -d \
$ eval "$(docker-machine env mh-keystore)"
4. Start a `progrium/consul` container running on the `mh-keystore` machine.
$ docker run -d \
-p "8500:8500" \
-h "consul" \
progrium/consul -server -bootstrap
A bash expansion `$(docker-machine config mh-keystore)` is used to pass the
connection configuration to the `docker run` command. The client starts a
`progrium/consul` image running in the `mh-keystore` machine. The server is
called `consul` and is listening on port `8500`.
4. Set your local environment to the `mh-keystore` machine.
$ eval "$(docker-machine env mh-keystore)"
The client starts a `progrium/consul` image running in the
`mh-keystore` machine. The server is called `consul` and is
listening on port `8500`.
5. Run the `docker ps` command to see the `consul` container.