mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Fix setting of toolkit config option in toolkit container
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
f9464c5cf9
commit
b8aa844171
@ -123,7 +123,7 @@ func main() {
|
|||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "accept-nvidia-visible-devices-as-volume-mounts",
|
Name: "accept-nvidia-visible-devices-as-volume-mounts",
|
||||||
Usage: "Set the accept-nvidia-visible-devices-as-volume-mounts config option",
|
Usage: "Set the accept-nvidia-visible-devices-as-volume-mounts config option",
|
||||||
Destination: &opts.acceptNVIDIAVisibleDevicesWhenUnprivileged,
|
Destination: &opts.acceptNVIDIAVisibleDevicesAsVolumeMounts,
|
||||||
EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_AS_VOLUME_MOUNTS"},
|
EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_AS_VOLUME_MOUNTS"},
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user