Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 013d8f0

Browse files
author
Misty Stanley-Jones
authored
Merge pull request docker#631 from mstanleyjones/followup_link_flag
Add a little more clarification about --link
2 parents d3155b9 + d27ac5e commit 013d8f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

engine/userguide/networking/default_network/dockerlinks.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ detail on container linking in default `bridge` network.
2121
>**Warning**: The `--link` flag is a deprecated legacy feature of Docker. It may eventually
2222
be removed. Unless you absolutely need to continue using it, we recommend that you use
2323
user-defined networks to facilitate communication between two containers instead of using
24-
`--link`.
24+
`--link`. One feature that user-defined networks do not support that you can do
25+
with `--link` is sharing environmental variables between containers. However,
26+
you can use other mechanisms such as volumes to share environment variables
27+
between containers in a more controlled way.
2528

2629
## Connect using network port mapping
2730

0 commit comments

Comments
 (0)