mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Make error message clearer
This change improves the error message when invoking the NVIDIA Runtime Hook in non-legacy mode. This should guide users to specifying the --runtime=nvidia flag when using docker. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
bcdef81e30
commit
1161b21166
@ -75,7 +75,7 @@ func doPrestart() {
|
||||
cli := hook.NvidiaContainerCLI
|
||||
|
||||
if info.ResolveAutoMode(&logInterceptor{}, hook.NVIDIAContainerRuntime.Mode) != "legacy" {
|
||||
log.Panicln("invoking the NVIDIA Container Runtime Hook directly (e.g. specifying the docker --gpus flag) is not supported. Please use the NVIDIA Container Runtime instead.")
|
||||
log.Panicln("invoking the NVIDIA Container Runtime Hook directly (e.g. specifying the docker --gpus flag) is not supported. Please use the NVIDIA Container Runtime (e.g. specify the --runtime=nvidia flag) instead .")
|
||||
}
|
||||
|
||||
container := getContainerConfig(hook)
|
||||
|
Loading…
Reference in New Issue
Block a user