diff --git a/CHANGELOG.md b/CHANGELOG.md index aa52deba..12f71483 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ * Added `--library-search-path` option to `nvidia-ctk cdi generate` command in `csv` mode. This allows folders where libraries are located to be specified explicitly. +* [toolkit-container] Set `NVIDIA_VISIBLE_DEVICES=void` to prevent injection of NVIDIA devices and drivers into the NVIDIA Container Toolkit container. + ## v1.14.0-rc.2 * Fix bug causing incorrect nvidia-smi symlink to be created on WSL2 systems with multiple driver roots. * Remove dependency on coreutils when installing package on RPM-based systems. diff --git a/build/container/Dockerfile.centos b/build/container/Dockerfile.centos index 6adf191b..3250c425 100644 --- a/build/container/Dockerfile.centos +++ b/build/container/Dockerfile.centos @@ -63,7 +63,7 @@ RUN [[ "${BASE_DIST}" != "centos8" ]] || \ ) ENV NVIDIA_DISABLE_REQUIRE="true" -ENV NVIDIA_VISIBLE_DEVICES=all +ENV NVIDIA_VISIBLE_DEVICES=void ENV NVIDIA_DRIVER_CAPABILITIES=utility ARG ARTIFACTS_ROOT diff --git a/build/container/Dockerfile.ubuntu b/build/container/Dockerfile.ubuntu index fc3358dc..cacaeeba 100644 --- a/build/container/Dockerfile.ubuntu +++ b/build/container/Dockerfile.ubuntu @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ rm -rf /var/lib/apt/lists/* ENV NVIDIA_DISABLE_REQUIRE="true" -ENV NVIDIA_VISIBLE_DEVICES=all +ENV NVIDIA_VISIBLE_DEVICES=void ENV NVIDIA_DRIVER_CAPABILITIES=utility ARG ARTIFACTS_ROOT