Update networking doc with clarified text regarding links usage

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Erik Hollensbe 2014-08-26 10:59:22 -07:00
parent 9f09ef18a4
commit f6a2fc4c33
1 changed files with 4 additions and 4 deletions

View File

@ -150,10 +150,10 @@ Four different options affect container domain name services.
`CONTAINER_NAME`. This lets processes inside the new container
connect to the hostname `ALIAS` without having to know its IP. The
`--link=` option is discussed in more detail below, in the section
[Communication between containers](#between-containers). Docker updates
the ALIAS entry in the /etc/hosts file of the recipient containers
in order to keep the link since Docker may assign a different IP
address to the linked containers on restart.
[Communication between containers](#between-containers). Because
Docker may assign a different IP address to the linked containers
on restart, Docker updates the ALIAS entry in the /etc/hosts file
of the recipient containers.
* `--dns=IP_ADDRESS...` — sets the IP addresses added as `server`
lines to the container's `/etc/resolv.conf` file. Processes in the