Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions container-toolkit/cdi-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,11 @@ Using CDI to inject NVIDIA devices can conflict with using the NVIDIA Container
This means that if a `/usr/share/containers/oci/hooks.d/oci-nvidia-hook.json` file exists, delete it
or ensure that you do not run containers with the `NVIDIA_VISIBLE_DEVICES` environment variable set.

Generated CDI specifications include a `void` volume mount.
When you set `accept-nvidia-visible-devices-as-volume-mounts` to `true`, the `void` mount prevents the NVIDIA Container Runtime from injecting additional devices through volume-mount requests.
Generated CDI specifications set the `NVIDIA_VISIBLE_DEVICES` environment variable to `void`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 CDI guidance blurs unset and void

The preceding hook warning says to leave NVIDIA_VISIBLE_DEVICES unset. It does not distinguish an explicit device request from the void value CDI adds.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

When you set `accept-nvidia-visible-devices-as-volume-mounts` to `true`, the `void` value prevents the NVIDIA Container Runtime from injecting additional devices through volume-mount requests.
The setting defaults to `false`.
Regenerate an existing specification by following [Manual CDI Specification Generation](#manual-cdi-specification-generation) to include the `void` mount.
Specifications generated by `v1.20.2` prevent containers in a user namespace from starting.
If you generated a specification manually with `v1.20.2`, upgrade the NVIDIA Container Toolkit and then regenerate the specification by following [Manual CDI Specification Generation](#manual-cdi-specification-generation).

The use of the CDI specification depends on the CDI-enabled container engine or CLI that you use.
In the case of `podman`, for example, releases as of `v4.1.0` include support for specifying CDI devices in the `--device` argument.
Expand Down
30 changes: 30 additions & 0 deletions container-toolkit/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,36 @@

This document describes the new features, improvements, fixes and known issues for the NVIDIA Container Toolkit.

## NVIDIA Container Toolkit 1.20.3

This release of the NVIDIA Container Toolkit `v1.20.3` is a bugfix release.

### Fixes and Features

This release includes the following changes:

- Fixed an issue where containers in a user namespace failed to start when CDI was used.
Kubernetes pods that set `hostUsers: false` are an example of containers in a user namespace.
The containers failed with an error such as `failed to set MOUNT_ATTR_IDMAP on /dev/null: invalid argument`.
Generated CDI specifications no longer include the `/dev/null` volume mount that caused the error.
The NVIDIA Container Runtime still prevents volume-mount device requests from adding GPUs in addition to the GPUs that CDI selects.
If you generated a CDI specification manually, regenerate the specification after you upgrade.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Unscoped CDI regeneration advice

The release note tells all readers with manual CDI specifications to regenerate them. The CDI guide limits that instruction to specifications generated with v1.20.2.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

For more information, refer to [PR #2236](https://github.com/NVIDIA/nvidia-container-toolkit/pull/2236) and [issue #2226](https://github.com/NVIDIA/nvidia-container-toolkit/issues/2226).

### Included Packages

The following packages are included:

- `nvidia-container-toolkit 1.20.3`
- `nvidia-container-toolkit-base 1.20.3`
- `libnvidia-container-tools 1.20.3`
- `libnvidia-container1 1.20.3`

The following `container-toolkit` containers are included:

- `nvcr.io/nvidia/k8s/container-toolkit:v1.20.3`
- `nvcr.io/nvidia/k8s/container-toolkit:v1.20.3-packaging`

## NVIDIA Container Toolkit 1.20.2

This release of the NVIDIA Container Toolkit `v1.20.2` is a bugfix release.
Expand Down
4 changes: 4 additions & 0 deletions container-toolkit/versions1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[
{
"preferred": "true",
"url": "../1.20.3/",
"version": "1.20.3"
},
{
"url": "../1.20.2/",
"version": "1.20.2"
},
Expand Down
4 changes: 2 additions & 2 deletions repo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ project_build_order = [
docs_root = "${root}/container-toolkit"
project = "container-toolkit"
name = "NVIDIA Container Toolkit"
version = "1.20.2"
source_substitutions = {version = "1.20.2"}
version = "1.20.3"
source_substitutions = {version = "1.20.3"}
copyright_start = 2020
redirects = [
{ path="concepts.html", target="index.html" },
Expand Down