Skip to content

Commit 91676d3

Browse files
authored
CDI Compose support (#22131)
<!--Delete sections as needed --> ## Description Adds compose-spec/compose-spec#574 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent b6456b6 commit 91676d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/reference/compose-file/services.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,13 @@ devices:
523523
- "/dev/sda:/dev/xvda:rwm"
524524
```
525525

526+
`devices` can also rely on the [CDI](https://github.com/cncf-tags/container-device-interface) syntax to let the container runtime select a device:
527+
528+
```yml
529+
devices:
530+
- "vendor1.com/device=gpu"
531+
```
532+
526533
### `dns`
527534

528535
`dns` defines custom DNS servers to set on the container network interface configuration. It can be a single value or a list.

0 commit comments

Comments
 (0)