Skip to content

Commit

Permalink
Replace deprecated usage of : as separator in security_opt (#21642)
Browse files Browse the repository at this point in the history
<!--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
  • Loading branch information
jnoordsij authored Dec 18, 2024
1 parent 3125358 commit 21b8b18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/reference/compose-file/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -913,21 +913,21 @@ services:
common:
image: busybox
security_opt:
- label:role:ROLE
- label=role:ROLE
cli:
extends:
service: common
security_opt:
- label:user:USER
- label=user:USER
```

Produces the following configuration for the `cli` service.

```yaml
image: busybox
security_opt:
- label:role:ROLE
- label:user:USER
- label=role:ROLE
- label=user:USER
```

In case list syntax is used, the following keys should also be treated as sequences:
Expand Down Expand Up @@ -1736,8 +1736,8 @@ secrets:

```yml
security_opt:
- label:user:USER
- label:role:ROLE
- label=user:USER
- label=role:ROLE
```

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

0 comments on commit 21b8b18

Please sign in to comment.