mirror of https://github.com/docker/docs.git
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:
parent
b6456b6df3
commit
91676d373c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue