mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #6668 from erikh/fix-links-userguide
Add ticks to docker links userguide, was not being rendered properly.
This commit is contained in:
commit
917b7436af
1 changed files with 3 additions and 1 deletions
|
@ -169,11 +169,12 @@ Docker exposes connectivity information for the parent container inside the
|
||||||
child container in two ways:
|
child container in two ways:
|
||||||
|
|
||||||
* Environment variables,
|
* Environment variables,
|
||||||
* Updating the `/etc/host` file.
|
* Updating the `/etc/hosts` file.
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
```
|
||||||
$ sudo docker run --rm --name web2 --link 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
|
||||||
|
@ -183,6 +184,7 @@ command to list the container's environment variables.
|
||||||
DB_PORT_5000_TCP_PORT=5432
|
DB_PORT_5000_TCP_PORT=5432
|
||||||
DB_PORT_5000_TCP_ADDR=172.17.0.5
|
DB_PORT_5000_TCP_ADDR=172.17.0.5
|
||||||
. . .
|
. . .
|
||||||
|
```
|
||||||
|
|
||||||
> **Note**:
|
> **Note**:
|
||||||
> These Environment variables are only set for the first process in the
|
> These Environment variables are only set for the first process in the
|
||||||
|
|
Loading…
Add table
Reference in a new issue