mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-22 12:17:53 +00:00
Specify containerd runtime type as string
This removes the need to import the containerd package and reduces the dependency management overhead. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
7a31ebadb1
commit
e2ec381093
@ -25,7 +25,6 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/containerd/containerd/plugin"
|
||||
toml "github.com/pelletier/go-toml"
|
||||
log "github.com/sirupsen/logrus"
|
||||
cli "github.com/urfave/cli/v2"
|
||||
@ -44,7 +43,7 @@ const (
|
||||
defaultConfig = "/etc/containerd/config.toml"
|
||||
defaultSocket = "/run/containerd/containerd.sock"
|
||||
defaultRuntimeClass = "nvidia"
|
||||
defaultRuntmeType = plugin.RuntimeRuncV2
|
||||
defaultRuntmeType = "io.containerd.runc.v2"
|
||||
defaultSetAsDefault = true
|
||||
defaultRestartMode = restartModeSignal
|
||||
defaultHostRootMount = "/host"
|
||||
|
Loading…
Reference in New Issue
Block a user