mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-23 12:49: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"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containerd/containerd/plugin"
|
|
||||||
toml "github.com/pelletier/go-toml"
|
toml "github.com/pelletier/go-toml"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
cli "github.com/urfave/cli/v2"
|
cli "github.com/urfave/cli/v2"
|
||||||
@ -44,7 +43,7 @@ const (
|
|||||||
defaultConfig = "/etc/containerd/config.toml"
|
defaultConfig = "/etc/containerd/config.toml"
|
||||||
defaultSocket = "/run/containerd/containerd.sock"
|
defaultSocket = "/run/containerd/containerd.sock"
|
||||||
defaultRuntimeClass = "nvidia"
|
defaultRuntimeClass = "nvidia"
|
||||||
defaultRuntmeType = plugin.RuntimeRuncV2
|
defaultRuntmeType = "io.containerd.runc.v2"
|
||||||
defaultSetAsDefault = true
|
defaultSetAsDefault = true
|
||||||
defaultRestartMode = restartModeSignal
|
defaultRestartMode = restartModeSignal
|
||||||
defaultHostRootMount = "/host"
|
defaultHostRootMount = "/host"
|
||||||
|
Loading…
Reference in New Issue
Block a user