CDI Compose support (#22131)

<!--Delete sections as needed -->

## Description

Adds https://github.com/compose-spec/compose-spec/pull/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
This commit is contained in:
Allie Sadler 2025-03-05 07:59:45 +00:00 committed by GitHub
parent b6456b6df3
commit 91676d373c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -523,6 +523,13 @@ devices:
- "/dev/sda:/dev/xvda:rwm"
```
`devices` can also rely on the [CDI](https://github.com/cncf-tags/container-device-interface) syntax to let the container runtime select a device:
```yml
devices:
- "vendor1.com/device=gpu"
```
### `dns`
`dns` defines custom DNS servers to set on the container network interface configuration. It can be a single value or a list.