mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update dockerlinks.md
Docker-DCO-1.1-Signed-off-by: Hyeongkyu Lee <hyeongkyu.lee@navercorp.com> (github: leeplay)
This commit is contained in:
parent
b1c114c3a7
commit
7b1f34d626
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ child container in two ways:
|
||||||
|
|
||||||
Let's look first at the environment variables Docker sets. Let's run the `env`
|
Let's look first at the environment variables Docker sets. Let's run the `env`
|
||||||
command to list the container's environment variables.
|
command to list the container's environment variables.
|
||||||
$docker run --rm --link --name web2 db:db training/webapp env
|
$ sudo docker run --rm --name web2 --link db:db training/webapp env
|
||||||
. . .
|
. . .
|
||||||
DB_NAME=/web2/db
|
DB_NAME=/web2/db
|
||||||
DB_PORT=tcp://172.17.0.5:5432
|
DB_PORT=tcp://172.17.0.5:5432
|
||||||
|
|
Loading…
Reference in a new issue