Use the correct service name when linking

This commit is contained in:
Kevin Tang 2016-10-26 10:52:24 -04:00 committed by GitHub
parent c79c339ed7
commit 13e819b889
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ $ docker-cloud service run \
-p 80:80/tcp \ -p 80:80/tcp \
--role global \ --role global \
--autorestart ALWAYS \ --autorestart ALWAYS \
--link-service quickstart-python:web \ --link-service web:web \
--name lb \ --name lb \
dockercloud/haproxy dockercloud/haproxy
``` ```
@ -40,7 +40,7 @@ dockercloud/haproxy
**--autorestart ALWAYS** tells Docker Cloud to always [restart the containers](../../apps/autorestart.md) if they stop. **--autorestart ALWAYS** tells Docker Cloud to always [restart the containers](../../apps/autorestart.md) if they stop.
**--link-service quickstart-python:web** links your load balancer service *haproxy* with the service *quickstart-python*, and names the link *web*. (Learn more about Service Linking [here](../../apps/service-links.md).) **--link-service web:web** links your load balancer service *haproxy* with the *web* service, and names the link *web*. (Learn more about Service Linking [here](../../apps/service-links.md).)
**--name lb** names the service *lb* (short for *load balancer*). **--name lb** names the service *lb* (short for *load balancer*).