mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 16:29:18 +00:00
Return empty list of devices for unprivileged containers when 'accept-nvidia-visible-devices-envvar-unprivileged=false'
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
This commit is contained in:
parent
77a2975524
commit
48414e97bb
@ -104,7 +104,7 @@ func getDevicesFromSpec(logger *logrus.Logger, ociSpec oci.Spec, cfg *config.Con
|
|||||||
|
|
||||||
logger.Warningf("Ignoring devices specified in NVIDIA_VISIBLE_DEVICES: %v", devices)
|
logger.Warningf("Ignoring devices specified in NVIDIA_VISIBLE_DEVICES: %v", devices)
|
||||||
|
|
||||||
return devices, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify loads the CDI registry and injects the specified CDI devices into the OCI runtime specification.
|
// Modify loads the CDI registry and injects the specified CDI devices into the OCI runtime specification.
|
||||||
|
Loading…
Reference in New Issue
Block a user