Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1715,8 +1715,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