Skip to content

Commit a558430

Browse files
committed
Make network_mode and networks mutually exclusive attributes
Signed-off-by: Laura Brehm <[email protected]>
1 parent c41bf15 commit a558430

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

05-services.md

+3
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,9 @@ specification define specific values which MUST be implemented as described if s
10601060
network_mode: "service:[service name]"
10611061
```
10621062

1063+
When set, `networks` attribute is not allowed and a Compose implementation SHOULD reject any
1064+
Compose file containing both attributes
1065+
10631066
### networks
10641067

10651068
`networks` defines the networks that service containers are attached to, referencing entries under the

spec.md

+3
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,9 @@ specification define specific values which MUST be implemented as described if s
13111311
network_mode: "service:[service name]"
13121312
```
13131313

1314+
When set, `networks` attribute is not allowed and a Compose implementation SHOULD reject any
1315+
Compose file containing both attributes
1316+
13141317
### networks
13151318

13161319
`networks` defines the networks that service containers are attached to, referencing entries under the

0 commit comments

Comments
 (0)