You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.Description="DESTINATION points to the host path underneath which the nvidia-container-toolkit should be installed.\nIt will be installed at ${DESTINATION}/toolkit"
88
+
c.Usage="Install the NVIDIA Container Toolkit and configure the specified runtime to use the `nvidia` runtime."
102
89
c.Version=info.GetVersionString()
103
90
c.Before=func(ctx*cli.Context) error {
104
91
returna.Before(ctx, &options)
@@ -124,21 +111,16 @@ func (a app) build() *cli.App {
124
111
Destination: &options.runtime,
125
112
EnvVars: []string{"RUNTIME"},
126
113
},
127
-
// TODO: Remove runtime-args
128
-
&cli.StringFlag{
129
-
Name: "runtime-args",
130
-
Aliases: []string{"u"},
131
-
Usage: "arguments to pass to 'docker', 'crio', or 'containerd' setup command",
132
-
Value: defaultRuntimeArgs,
133
-
Destination: &options.runtimeArgs,
134
-
EnvVars: []string{"RUNTIME_ARGS"},
135
-
},
136
114
&cli.StringFlag{
137
-
Name: "root",
138
-
Value: a.defaultRoot,
139
-
Usage: "the folder where the NVIDIA Container Toolkit is to be installed. It will be installed to `ROOT`/toolkit",
140
-
Destination: &options.root,
141
-
EnvVars: []string{"ROOT"},
115
+
Name: "toolkit-install-dir",
116
+
Aliases: []string{"root"},
117
+
Usage: "The directory where the NVIDIA Container Toolkit is to be installed. "+
118
+
"The components of the toolkit will be installed to `ROOT`/toolkit. "+
119
+
"Note that in the case of a containerized installer, this is the path in the container and it is "+
120
+
"recommended that this match the path on the host.",
121
+
Value: defaultToolkitInstallDir,
122
+
Destination: &options.toolkitInstallDir,
123
+
EnvVars: []string{"TOOLKIT_INSTALL_DIR", "ROOT"},
142
124
},
143
125
&cli.StringFlag{
144
126
Name: "source-root",
@@ -172,7 +154,7 @@ func (a *app) Before(c *cli.Context, o *options) error {
0 commit comments