99 "syscall"
1010
1111 log "github.com/sirupsen/logrus"
12- cli "github.com/urfave/cli/v2"
13- unix "golang.org/x/sys/unix"
12+ "github.com/urfave/cli/v2"
13+ "golang.org/x/sys/unix"
1414
1515 "github.com/NVIDIA/nvidia-container-toolkit/tools/container/runtime"
1616 "github.com/NVIDIA/nvidia-container-toolkit/tools/container/toolkit"
@@ -19,12 +19,10 @@ import (
1919const (
2020 toolkitPidFilename = "toolkit.pid"
2121 defaultPidFile = "/run/nvidia/toolkit/" + toolkitPidFilename
22- toolkitCommand = "toolkit"
2322 toolkitSubDir = "toolkit"
2423
25- defaultRuntime = "docker"
26- defaultRuntimeArgs = ""
27- defaultHostRootMount = "/host"
24+ defaultRuntime = "docker"
25+ defaultRuntimeArgs = ""
2826)
2927
3028var availableRuntimes = map [string ]struct {}{"docker" : {}, "crio" : {}, "containerd" : {}}
@@ -192,7 +190,7 @@ func Run(c *cli.Context, o *options) error {
192190}
193191
194192// ParseArgs checks if a single positional argument was defined and extracts this the root.
195- // If no positional arguments are defined, the it is assumed that the root is specified as a flag.
193+ // If no positional arguments are defined, it is assumed that the root is specified as a flag.
196194func ParseArgs (args []string ) ([]string , string , error ) {
197195 log .Infof ("Parsing arguments" )
198196
0 commit comments