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
cb9aeb0413.
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
This commit is contained in:
Jesper Noordsij 2024-12-18 09:54:52 +01:00 committed by GitHub
parent 312535843b
commit 21b8b18974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -913,12 +913,12 @@ 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.
@ -926,8 +926,8 @@ 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:
@ -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).