mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 13:35:00 +00:00
Ensure that toolkit-container sets correct default value
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
b8aa844171
commit
86412ea821
@ -117,6 +117,7 @@ func main() {
|
|||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "accept-nvidia-visible-devices-envvar-when-unprivileged",
|
Name: "accept-nvidia-visible-devices-envvar-when-unprivileged",
|
||||||
Usage: "Set the accept-nvidia-visible-devices-envvar-when-unprivileged config option",
|
Usage: "Set the accept-nvidia-visible-devices-envvar-when-unprivileged config option",
|
||||||
|
Value: true,
|
||||||
Destination: &opts.acceptNVIDIAVisibleDevicesWhenUnprivileged,
|
Destination: &opts.acceptNVIDIAVisibleDevicesWhenUnprivileged,
|
||||||
EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED"},
|
EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED"},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user