From bbfb010cafb34cac084740b17e269ec90370b02f Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Tue, 24 Nov 2026 13:58:52 +0000 Subject: [PATCH 1/2] docs(container-toolkit): add 1.20.3 release notes Signed-off-by: Mike McKiernan Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- container-toolkit/cdi-support.md | 7 ++++--- container-toolkit/release-notes.md | 31 ++++++++++++++++++++++++++++++ container-toolkit/versions1.json | 4 ++++ repo.toml | 4 ++-- 4 files changed, 41 insertions(+), 5 deletions(-) diff --git a/container-toolkit/cdi-support.md b/container-toolkit/cdi-support.md index c785cc0d1..18f1d0801 100644 --- a/container-toolkit/cdi-support.md +++ b/container-toolkit/cdi-support.md @@ -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`. +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. +If you generated a specification manually with `v1.20.2`, regenerate the specification by following [Manual CDI Specification Generation](#manual-cdi-specification-generation). +The regenerated specification omits the `void` volume mount that prevents containers in a user namespace from starting. 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. diff --git a/container-toolkit/release-notes.md b/container-toolkit/release-notes.md index efb69710e..9dd544da1 100644 --- a/container-toolkit/release-notes.md +++ b/container-toolkit/release-notes.md @@ -8,6 +8,37 @@ 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 with the NVIDIA Container Runtime when CDI was used. + This issue affected Kubernetes pods that set `hostUsers: false`. + The CDI specification generated by `v1.20.2` includes a `void` volume mount of `/dev/null`, and the container runtime cannot apply an ID-mapped mount to `/dev/null`. + Container creation fails with an error such as `failed to set MOUNT_ATTR_IDMAP on /dev/null: invalid argument`. + Generated CDI specifications no longer include the `void` volume mount. + When `NVIDIA_VISIBLE_DEVICES` is set to `void` or `none`, the NVIDIA Container Runtime ignores device requests through volume mounts. + Generated CDI specifications set `NVIDIA_VISIBLE_DEVICES=void`, so volume-mount requests still cannot add GPUs to a container in addition to the GPUs selected through CDI. + 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. diff --git a/container-toolkit/versions1.json b/container-toolkit/versions1.json index 5b5bcc1e2..3d66f92ec 100644 --- a/container-toolkit/versions1.json +++ b/container-toolkit/versions1.json @@ -1,6 +1,10 @@ [ { "preferred": "true", + "url": "../1.20.3/", + "version": "1.20.3" + }, + { "url": "../1.20.2/", "version": "1.20.2" }, diff --git a/repo.toml b/repo.toml index d504cd579..943fb9867 100644 --- a/repo.toml +++ b/repo.toml @@ -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" }, From fab90d1d3aa10d9ab49c2e7f4da9d3ed30a0b50c Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Tue, 24 Nov 2026 15:03:08 +0000 Subject: [PATCH 2/2] docs(container-toolkit): simplify 1.20.3 release note Describe the user-visible fix and tell readers to upgrade before regenerating a CDI spec. Signed-off-by: Mike McKiernan Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- container-toolkit/cdi-support.md | 4 ++-- container-toolkit/release-notes.md | 13 ++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/container-toolkit/cdi-support.md b/container-toolkit/cdi-support.md index 18f1d0801..7fb690063 100644 --- a/container-toolkit/cdi-support.md +++ b/container-toolkit/cdi-support.md @@ -223,8 +223,8 @@ or ensure that you do not run containers with the `NVIDIA_VISIBLE_DEVICES` envir Generated CDI specifications set the `NVIDIA_VISIBLE_DEVICES` environment variable to `void`. 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`. -If you generated a specification manually with `v1.20.2`, regenerate the specification by following [Manual CDI Specification Generation](#manual-cdi-specification-generation). -The regenerated specification omits the `void` volume mount that prevents containers in a user namespace from starting. +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. diff --git a/container-toolkit/release-notes.md b/container-toolkit/release-notes.md index 9dd544da1..23c30bd33 100644 --- a/container-toolkit/release-notes.md +++ b/container-toolkit/release-notes.md @@ -16,13 +16,12 @@ This release of the NVIDIA Container Toolkit `v1.20.3` is a bugfix release. This release includes the following changes: -- Fixed an issue where containers in a user namespace failed to start with the NVIDIA Container Runtime when CDI was used. - This issue affected Kubernetes pods that set `hostUsers: false`. - The CDI specification generated by `v1.20.2` includes a `void` volume mount of `/dev/null`, and the container runtime cannot apply an ID-mapped mount to `/dev/null`. - Container creation fails with an error such as `failed to set MOUNT_ATTR_IDMAP on /dev/null: invalid argument`. - Generated CDI specifications no longer include the `void` volume mount. - When `NVIDIA_VISIBLE_DEVICES` is set to `void` or `none`, the NVIDIA Container Runtime ignores device requests through volume mounts. - Generated CDI specifications set `NVIDIA_VISIBLE_DEVICES=void`, so volume-mount requests still cannot add GPUs to a container in addition to the GPUs selected through CDI. +- 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. 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