Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDI Compose support #22131

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
CDI Compose support
  • Loading branch information
aevesdocker committed Feb 28, 2025
commit 6e5b478e4e62c319f2f051cba1e9b928424badfd
7 changes: 7 additions & 0 deletions content/reference/compose-file/services.md
Original file line number Diff line number Diff line change
@@ -523,6 +523,13 @@
- "/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:

Check warning on line 526 in content/reference/compose-file/services.md

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [Docker.Acronyms] 'CDI' has no definition. Raw Output: {"message": "[Docker.Acronyms] 'CDI' has no definition.", "location": {"path": "content/reference/compose-file/services.md", "range": {"start": {"line": 526, "column": 33}}}, "severity": "WARNING"}

```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.