nvidia-container-toolkit/pkg
Evan Lezar f6b1b1afad Ignore NVIDIA_VISIBLE_DEVICES for containers with insufficent privileges
This change ignores the value of NVIDIA_VISIBLE_DEVICES instead of
raising an error when launching a container with insufficient permissions.

This changes the behaviour under the following conditions:

NVIDIA_VISIBLE_DEVICES is set
and

accept-nvidia-visible-devices-envvar-when-unprivileged = false (default: true)

or

privileged = false (default: false)

This means that a user need not explicitly clear the NVIDIA_VISIBLE_DEVICES
environment variable if no GPUs are to be used in unprivileged containers.
Note that this envvar is set to 'all' by default in many CUDA images that
are used as base images.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2021-01-22 15:34:52 +01:00
..
capabilities.go Add the 'ngx' driver capability 2020-06-24 17:53:42 +00:00
container_config.go Ignore NVIDIA_VISIBLE_DEVICES for containers with insufficent privileges 2021-01-22 15:34:52 +01:00
container_test.go Ignore NVIDIA_VISIBLE_DEVICES for containers with insufficent privileges 2021-01-22 15:34:52 +01:00
hook_config.go Refactor accepting device lists from volume mounts as a boolean 2020-08-07 16:30:19 +00:00
hook_test.go Add test to make sure that getNvidiaConfig() operates as expected 2020-07-24 12:50:05 +00:00
main.go Add support for mig-config and mig-monitor as privileged flags 2020-05-15 19:04:10 +00:00