Skip to content

Commit 6e5b478

Browse files
committed
CDI Compose support
1 parent 641f973 commit 6e5b478

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)