nvidia-container-toolkit/cmd/nvidia-cdi-hook/commands
Evan Lezar 49aa5d764b
Add a hook to disable device node creation in a container
If required, this hook creates a modified params file (with ModifyDeviceFiles: 0) in a tmpfs
and mounts this over /proc/driver/nvidia/params.

This prevents device node creation when running tools such as nvidia-smi. In general the
creation of these devices is cosmetic as a container does not have the required cgroup
access for the devices.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2025-04-03 15:48:29 +02:00
..
commands.go Add a hook to disable device node creation in a container 2025-04-03 15:48:29 +02:00