@@ -50,14 +50,14 @@ func Flags(opts *Options) []cli.Flag {
5050 Usage : "Path to the runtime config file" ,
5151 Value : runtimeSpecificDefault ,
5252 Destination : & opts .Config ,
53- EnvVars : []string {"RUNTIME_CONFIG" },
53+ EnvVars : []string {"RUNTIME_CONFIG" , "CONTAINERD_CONFIG" , "DOCKER_CONFIG" },
5454 },
5555 & cli.StringFlag {
5656 Name : "socket" ,
5757 Usage : "Path to the runtime socket file" ,
5858 Value : runtimeSpecificDefault ,
5959 Destination : & opts .Socket ,
60- EnvVars : []string {"RUNTIME_SOCKET" },
60+ EnvVars : []string {"RUNTIME_SOCKET" , "CONTAINERD_SOCKET" , "DOCKER_SOCKET" },
6161 },
6262 & cli.StringFlag {
6363 Name : "restart-mode" ,
@@ -79,14 +79,14 @@ func Flags(opts *Options) []cli.Flag {
7979 Usage : "Specify the name of the `nvidia` runtime. If set-as-default is selected, the runtime is used as the default runtime." ,
8080 Value : defaultRuntimeName ,
8181 Destination : & opts .RuntimeName ,
82- EnvVars : []string {"NVIDIA_RUNTIME_NAME" },
82+ EnvVars : []string {"NVIDIA_RUNTIME_NAME" , "CONTAINERD_RUNTIME_CLASS" , "DOCKER_RUNTIME_NAME" },
8383 },
8484 & cli.BoolFlag {
8585 Name : "set-as-default" ,
8686 Usage : "Set the `nvidia` runtime as the default runtime." ,
8787 Value : defaultSetAsDefault ,
8888 Destination : & opts .SetAsDefault ,
89- EnvVars : []string {"NVIDIA_RUNTIME_SET_AS_DEFAULT" },
89+ EnvVars : []string {"NVIDIA_RUNTIME_SET_AS_DEFAULT" , "CONTAINERD_SET_AS_DEFAULT" , "DOCKER_SET_AS_DEFAULT" },
9090 Hidden : true ,
9191 },
9292 }
0 commit comments