Merge pull request #19923 from thaJeztah/update-etc-hosts-docs

Add note about legacy links
Upstream-commit: 6144d24b03044e68ed8a062d741be8e37d9e7d7b
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2016-02-02 18:09:22 +01:00

View File

@ -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: