From f367aeadf328944df779dc329dc66adcda38a5b7 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 1 Feb 2016 16:07:57 +0100 Subject: [PATCH] Add note about legacy links Signed-off-by: Sebastiaan van Stijn --- man/docker-run.1.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/docker-run.1.md b/man/docker-run.1.md index ab668e62ae..210343e3e4 100644 --- a/man/docker-run.1.md +++ b/man/docker-run.1.md @@ -759,6 +759,12 @@ Create a 3rd container using the new --ipc=container:CONTAINERID option, now it ## Linking Containers +> **Note**: This section describes linking between containers on the +> default (bridge) network, also known as "legacy links". Using `--link` +> on user-defined networks uses the DNS-based discovery, which does not add +> entries to `/etc/hosts`, and does not set environment variables for +> discovery. + The link feature allows multiple containers to communicate with each other. For example, a container whose Dockerfile has exposed port 80 can be run and named as follows: