mirror of https://github.com/docker/docs.git
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:
parent
312535843b
commit
21b8b18974
|
@ -913,12 +913,12 @@ services:
|
||||||
common:
|
common:
|
||||||
image: busybox
|
image: busybox
|
||||||
security_opt:
|
security_opt:
|
||||||
- label:role:ROLE
|
- label=role:ROLE
|
||||||
cli:
|
cli:
|
||||||
extends:
|
extends:
|
||||||
service: common
|
service: common
|
||||||
security_opt:
|
security_opt:
|
||||||
- label:user:USER
|
- label=user:USER
|
||||||
```
|
```
|
||||||
|
|
||||||
Produces the following configuration for the `cli` service.
|
Produces the following configuration for the `cli` service.
|
||||||
|
@ -926,8 +926,8 @@ Produces the following configuration for the `cli` service.
|
||||||
```yaml
|
```yaml
|
||||||
image: busybox
|
image: busybox
|
||||||
security_opt:
|
security_opt:
|
||||||
- label:role:ROLE
|
- label=role:ROLE
|
||||||
- label:user:USER
|
- label=user:USER
|
||||||
```
|
```
|
||||||
|
|
||||||
In case list syntax is used, the following keys should also be treated as sequences:
|
In case list syntax is used, the following keys should also be treated as sequences:
|
||||||
|
@ -1736,8 +1736,8 @@ secrets:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
security_opt:
|
security_opt:
|
||||||
- label:user:USER
|
- label=user:USER
|
||||||
- label:role:ROLE
|
- label=role:ROLE
|
||||||
```
|
```
|
||||||
|
|
||||||
For further default labeling schemes you can override, see [Security configuration](/reference/cli/docker/container/run.md#security-opt).
|
For further default labeling schemes you can override, see [Security configuration](/reference/cli/docker/container/run.md#security-opt).
|
||||||
|
|
Loading…
Reference in New Issue