Skip to content

Commit 21b8b18

Browse files
authored
Replace deprecated usage of : as separator in security_opt (#21642)
<!--Delete sections as needed --> ## Description The usage of `:` as separator in security options was deprecated with moby/moby@cb9aeb0. The preferred way of separating is using `=`. ## Related issues or tickets N/A ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 3125358 commit 21b8b18

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:
@@ -1736,8 +1736,8 @@ secrets:
17361736

17371737
```yml
17381738
security_opt:
1739-
- label:user:USER
1740-
- label:role:ROLE
1739+
- label=user:USER
1740+
- label=role:ROLE
17411741
```
17421742

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

0 commit comments

Comments
 (0)