Browse code

Update networking doc with clarified text regarding links usage

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)

Erik Hollensbe authored on 2014/08/27 02:59:22
Showing 1 changed files
... ...
@@ -150,10 +150,10 @@ Four different options affect container domain name services.
150 150
     `CONTAINER_NAME`.  This lets processes inside the new container
151 151
     connect to the hostname `ALIAS` without having to know its IP.  The
152 152
     `--link=` option is discussed in more detail below, in the section
153
-    [Communication between containers](#between-containers).  Docker updates
154
-    the ALIAS entry in the /etc/hosts file of the recipient containers
155
-    in order to keep the link since Docker may assign a different IP
156
-    address to the linked containers on restart.
153
+    [Communication between containers](#between-containers). Because
154
+    Docker may assign a different IP address to the linked containers
155
+    on restart, Docker updates the ALIAS entry in the /etc/hosts file
156
+    of the recipient containers.
157 157
 
158 158
  *  `--dns=IP_ADDRESS...` — sets the IP addresses added as `server`
159 159
     lines to the container's `/etc/resolv.conf` file.  Processes in the