From 86412ea821ba88323ee42478342728fd9fd4aa76 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 9 Aug 2022 10:50:51 +0200 Subject: [PATCH] Ensure that toolkit-container sets correct default value Signed-off-by: Evan Lezar --- tools/container/toolkit/toolkit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/container/toolkit/toolkit.go b/tools/container/toolkit/toolkit.go index 04da8b8c..43b0a095 100644 --- a/tools/container/toolkit/toolkit.go +++ b/tools/container/toolkit/toolkit.go @@ -117,6 +117,7 @@ func main() { &cli.BoolFlag{ Name: "accept-nvidia-visible-devices-envvar-when-unprivileged", Usage: "Set the accept-nvidia-visible-devices-envvar-when-unprivileged config option", + Value: true, Destination: &opts.acceptNVIDIAVisibleDevicesWhenUnprivileged, EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED"}, },