Set NVIDIA_VISIBLE_DEVICES=void in toolkit-container

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-08-15 11:51:54 +02:00
parent f904ec41eb
commit 7221b6b24b
3 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@
* Added `--library-search-path` option to `nvidia-ctk cdi generate` command in `csv` mode. This allows folders where * 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. 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 ## v1.14.0-rc.2
* Fix bug causing incorrect nvidia-smi symlink to be created on WSL2 systems with multiple driver roots. * 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. * Remove dependency on coreutils when installing package on RPM-based systems.

View File

@ -63,7 +63,7 @@ RUN [[ "${BASE_DIST}" != "centos8" ]] || \
) )
ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_DISABLE_REQUIRE="true"
ENV NVIDIA_VISIBLE_DEVICES=all ENV NVIDIA_VISIBLE_DEVICES=void
ENV NVIDIA_DRIVER_CAPABILITIES=utility ENV NVIDIA_DRIVER_CAPABILITIES=utility
ARG ARTIFACTS_ROOT ARG ARTIFACTS_ROOT

View File

@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_DISABLE_REQUIRE="true"
ENV NVIDIA_VISIBLE_DEVICES=all ENV NVIDIA_VISIBLE_DEVICES=void
ENV NVIDIA_DRIVER_CAPABILITIES=utility ENV NVIDIA_DRIVER_CAPABILITIES=utility
ARG ARTIFACTS_ROOT ARG ARTIFACTS_ROOT