File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,9 @@ It's recommended that you use reverse-DNS notation to prevent your labels from c
355
355
Link to containers in another service. Either specify both the service name and
356
356
a link alias (` SERVICE:ALIAS ` ), or just the service name.
357
357
358
+ > Links are a legacy option. We recommend using
359
+ > [ networks] ( #networks ) instead.
360
+
358
361
web:
359
362
links:
360
363
- db
Original file line number Diff line number Diff line change @@ -702,6 +702,9 @@ It's recommended that you use reverse-DNS notation to prevent your labels from c
702
702
Link to containers in another service. Either specify both the service name and
703
703
a link alias (` "SERVICE:ALIAS" ` ), or just the service name.
704
704
705
+ > Links are a legacy option. We recommend using
706
+ > [ networks] ( #networks ) instead.
707
+
705
708
web:
706
709
links:
707
710
- "db"
Original file line number Diff line number Diff line change @@ -1007,7 +1007,7 @@ specifying both the container name and the link alias (`CONTAINER:ALIAS`).
1007
1007
>
1008
1008
> If you're using the [ version 2 or above file format] ( compose-versioning.md#version-2 ) , the externally-created containers
1009
1009
must be connected to at least one of the same networks as the service which is
1010
- linking to them. Starting with Version 2, [ links ] ( compose-file-v2#links ) are a
1010
+ linking to them. [ Links ] ( compose-file-v2#links ) are a
1011
1011
legacy option. We recommend using [ networks] ( #networks ) instead.
1012
1012
>
1013
1013
> This option is ignored when [ deploying a stack in swarm mode] ( /engine/reference/commandline/stack_deploy.md )
You can’t perform that action at this time.
0 commit comments