Skip to content

Commit 7ac567c

Browse files
authored
Replace deprecated usage of : separator in security opt
1 parent 753cf3e commit 7ac567c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/reference/compose-file/services.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -913,21 +913,21 @@ services:
913913
common:
914914
image: busybox
915915
security_opt:
916-
- label:role:ROLE
916+
- label=role:ROLE
917917
cli:
918918
extends:
919919
service: common
920920
security_opt:
921-
- label:user:USER
921+
- label=user:USER
922922
```
923923

924924
Produces the following configuration for the `cli` service.
925925

926926
```yaml
927927
image: busybox
928928
security_opt:
929-
- label:role:ROLE
930-
- label:user:USER
929+
- label=role:ROLE
930+
- label=user:USER
931931
```
932932

933933
In case list syntax is used, the following keys should also be treated as sequences:
@@ -1715,8 +1715,8 @@ secrets:
17151715

17161716
```yml
17171717
security_opt:
1718-
- label:user:USER
1719-
- label:role:ROLE
1718+
- label=user:USER
1719+
- label=role:ROLE
17201720
```
17211721

17221722
For further default labeling schemes you can override, see [Security configuration](/reference/cli/docker/container/run.md#security-opt).

0 commit comments

Comments
 (0)