Merge pull request #631 from mstanleyjones/followup_link_flag

Add a little more clarification about --link
This commit is contained in:
Misty Stanley-Jones 2016-11-23 12:28:04 -08:00 committed by GitHub
commit 013d8f09fd
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ detail on container linking in default `bridge` network.
>**Warning**: The `--link` flag is a deprecated legacy feature of Docker. It may eventually >**Warning**: The `--link` flag is a deprecated legacy feature of Docker. It may eventually
be removed. Unless you absolutely need to continue using it, we recommend that you use be removed. Unless you absolutely need to continue using it, we recommend that you use
user-defined networks to facilitate communication between two containers instead of using user-defined networks to facilitate communication between two containers instead of using
`--link`. `--link`. One feature that user-defined networks do not support that you can do
with `--link` is sharing environmental variables between containers. However,
you can use other mechanisms such as volumes to share environment variables
between containers in a more controlled way.
## Connect using network port mapping ## Connect using network port mapping