From a781de0c10d33f9af92ba8270193f218a3dafdf5 Mon Sep 17 00:00:00 2001 From: Jaroslaw Zabiello Date: Sat, 19 Jul 2014 05:38:11 +0100 Subject: [PATCH] Update dockerlinks.md Added missing command for logging into web container. --- docs/sources/userguide/dockerlinks.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sources/userguide/dockerlinks.md b/docs/sources/userguide/dockerlinks.md index bfbcdb3bd6..d7a2abff9c 100644 --- a/docs/sources/userguide/dockerlinks.md +++ b/docs/sources/userguide/dockerlinks.md @@ -208,6 +208,7 @@ In addition to the environment variables Docker adds a host entry for the linked parent to the `/etc/hosts` file. Let's look at this file on the `web` container now. + $ sudo docker run -t -i --rm --link db:db training/webapp /bin/bash root@aed84ee21bde:/opt/webapp# cat /etc/hosts 172.17.0.7 aed84ee21bde . . .