From 91676d373c2709b53160ba5fb3488ef6eec39b75 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Wed, 5 Mar 2025 07:59:45 +0000 Subject: [PATCH] CDI Compose support (#22131) ## Description Adds https://github.com/compose-spec/compose-spec/pull/574 ## Related issues or tickets ## Reviews - [ ] Technical review - [ ] Editorial review - [ ] Product review --- content/reference/compose-file/services.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index a9013a1780..017481feb6 100644 --- a/content/reference/compose-file/services.md +++ b/content/reference/compose-file/services.md @@ -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.