OS Manuals

/usr/bin/nvidia-cdi-hook

From nvidia-container-toolkit-fips-nvidia-cdi-hook 1.20.1-r4 (enterprise-packages), captured 2026-11-08 by running nvidia-cdi-hook --help (exit 0). permalink

NAME:
   NVIDIA CDI Hook - Command to structure files for usage inside a container, called as hooks from a container runtime, defined in a CDI yaml file

USAGE:
   NVIDIA CDI Hook [global options] [command [command options]]

VERSION:
   1.20.1
commit: dffc40b4f820ce5c512633bac9e0418d0e05a2ee

COMMANDS:
   update-ldcache                    Update ldcache in a container by running ldconfig
   create-symlinks                   A hook to create symlinks in the container.
   chmod                             Set the permissions of folders in the container by running chmod. The container root is prefixed to the specified paths.
   enable-cuda-compat                This hook ensures that the folder containing the CUDA compat libraries is added to the ldconfig search path if required.
   disable-device-node-modification  Ensure that the /proc/driver/nvidia/params file present in the container does not allow device node modifications.
   apply-cuda-memory-limits          Set the soft and hard limits of CUDA memory usage on GPU device(s) in the container. It introspects the OCI container spec and fetches the memory limits from the environment variables:
                                     1) NVIDIA_GPU_MEMORY_REQUEST
                                     2) NVIDIA_GPU_MEMORY_LIMIT
                                     The values must be valid integers and are in MebiBytes.
   update-application-profile        Updates driver settings through "application profiles". Currently, this hook sets EGLVisibleDGPUDevices to restrict EGL/Vulkan GPU visibility inside the container
   help, h                           Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -d    Enable debug-level logging [$NVIDIA_CTK_DEBUG, $NVIDIA_CDI_DEBUG]
   --quiet        Suppress all output except for errors; overrides --debug [$NVIDIA_CTK_QUIET, $NVIDIA_CDI_QUIET]
   --help, -h     show help
   --version, -v  print the version
Options (4)
OptionDescriptionSource
--debug, -dEnable debug-level logging [$NVIDIA_CTK_DEBUG, $NVIDIA_CDI_DEBUG]help
--quietSuppress all output except for errors;help
--help, -hshow helphelp
--version, -vprint the versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.