9
9
"syscall"
10
10
11
11
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"
14
14
15
15
"github.com/NVIDIA/nvidia-container-toolkit/tools/container/runtime"
16
16
"github.com/NVIDIA/nvidia-container-toolkit/tools/container/toolkit"
@@ -19,12 +19,10 @@ import (
19
19
const (
20
20
toolkitPidFilename = "toolkit.pid"
21
21
defaultPidFile = "/run/nvidia/toolkit/" + toolkitPidFilename
22
- toolkitCommand = "toolkit"
23
22
toolkitSubDir = "toolkit"
24
23
25
- defaultRuntime = "docker"
26
- defaultRuntimeArgs = ""
27
- defaultHostRootMount = "/host"
24
+ defaultRuntime = "docker"
25
+ defaultRuntimeArgs = ""
28
26
)
29
27
30
28
var availableRuntimes = map [string ]struct {}{"docker" : {}, "crio" : {}, "containerd" : {}}
@@ -192,7 +190,7 @@ func Run(c *cli.Context, o *options) error {
192
190
}
193
191
194
192
// 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.
196
194
func ParseArgs (args []string ) ([]string , string , error ) {
197
195
log .Infof ("Parsing arguments" )
198
196
0 commit comments