containerd

package
v1.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "containerd"

	DefaultConfig      = "/etc/containerd/config.toml"
	DefaultSocket      = "/run/containerd/containerd.sock"
	DefaultRestartMode = "signal"
)

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(c *cli.Context, o *container.Options, co *Options) error

Cleanup reverts a containerd configuration to remove the nvidia-containerd-runtime and reloads it

func Flags

func Flags(opts *Options) []cli.Flag

func GetLowlevelRuntimePaths

func GetLowlevelRuntimePaths(o *container.Options, co *Options) ([]string, error)

func RestartContainerd

func RestartContainerd(o *container.Options) error

RestartContainerd restarts containerd depending on the value of restartModeFlag

func Setup

func Setup(c *cli.Context, o *container.Options, co *Options) error

Setup updates a containerd configuration to include the nvidia-containerd-runtime and reloads it

func SignalContainerd

func SignalContainerd(socket string) error

SignalContainerd sends a SIGHUP signal to the containerd daemon

Types

type Options

type Options struct {
	ContainerRuntimeModesCDIAnnotationPrefixes cli.StringSlice
	// contains filtered or unexported fields
}

Options stores the containerd-specific options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL