mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7117 from hipertracker/patch-1
Update dockerlinks.md
This commit is contained in:
commit
e60543400d
1 changed files with 1 additions and 0 deletions
|
@ -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`
|
linked parent to the `/etc/hosts` file. Let's look at this file on the `web`
|
||||||
container now.
|
container now.
|
||||||
|
|
||||||
|
$ sudo docker run -t -i --rm --link db:db training/webapp /bin/bash
|
||||||
root@aed84ee21bde:/opt/webapp# cat /etc/hosts
|
root@aed84ee21bde:/opt/webapp# cat /etc/hosts
|
||||||
172.17.0.7 aed84ee21bde
|
172.17.0.7 aed84ee21bde
|
||||||
. . .
|
. . .
|
||||||
|
|
Loading…
Reference in a new issue