From bfac0b24ed66277c66807466e9d429624b1179e6 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sun, 4 May 2014 03:16:21 +0200 Subject: [PATCH] Fixed a couple of single dashes in links document Docker-DCO-1.1-Signed-off-by: James Turnbull (github: jamtur01) --- docs/sources/use/working_with_links_names.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/use/working_with_links_names.md b/docs/sources/use/working_with_links_names.md index 40260feabf..dab66cef06 100644 --- a/docs/sources/use/working_with_links_names.md +++ b/docs/sources/use/working_with_links_names.md @@ -50,7 +50,7 @@ For example, there is an image called `crosbymichael/redis` that exposes the port 6379 and starts the Redis server. Let's name the container as `redis` based on that image and run it as daemon. - $ sudo docker run -d -name redis crosbymichael/redis + $ sudo docker run -d --name redis crosbymichael/redis We can issue all the commands that you would expect using the name `redis`; start, stop, attach, using the name for our container. The name also allows @@ -61,9 +61,9 @@ apply a link to connect both containers. If you noticed when running our Redis server we did not use the `-p` flag to publish the Redis port to the host system. Redis exposed port 6379 and this is all we need to establish a link. - $ sudo docker run -t -i -link redis:db -name webapp ubuntu bash + $ sudo docker run -t -i --link redis:db --name webapp ubuntu bash -When you specified `-link redis:db` you are telling Docker to link the +When you specified `--link redis:db` you are telling Docker to link the container named `redis` into this new container with the alias `db`. Environment variables are prefixed with the alias so that the parent container can access network and environment information from the containers that are