Browse code

Add note about legacy links

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/02/02 00:07:57
Showing 1 changed files
... ...
@@ -759,6 +759,12 @@ Create a 3rd container using the new --ipc=container:CONTAINERID option, now it
759 759
 
760 760
 ## Linking Containers
761 761
 
762
+> **Note**: This section describes linking between containers on the
763
+> default (bridge) network, also known as "legacy links". Using `--link`
764
+> on user-defined networks uses the DNS-based discovery, which does not add
765
+> entries to `/etc/hosts`, and does not set environment variables for
766
+> discovery.
767
+
762 768
 The link feature allows multiple containers to communicate with each other. For
763 769
 example, a container whose Dockerfile has exposed port 80 can be run and named
764 770
 as follows: