package supervisor

import "github.com/dotcloud/docker/libcontainerd/supervisor"

Index

Types

type Daemon

type Daemon interface {
	WaitTimeout(time.Duration) error
	Address() string
}

Daemon represents a running containerd daemon

func Start

func Start(ctx context.Context, rootDir, stateDir string, opts ...DaemonOpt) (Daemon, error)

Start starts a containerd daemon and monitors it

type DaemonOpt

type DaemonOpt func(c *remote) error

DaemonOpt allows to configure parameters of container daemons

func WithCRIDisabled

func WithCRIDisabled() DaemonOpt

WithCRIDisabled disables the CRI plugin.

func WithLogLevel

func WithLogLevel(lvl string) DaemonOpt

WithLogLevel defines which log level to start containerd with.

func WithOOMScore

func WithOOMScore(score int) DaemonOpt

WithOOMScore defines the oom_score_adj to set for the containerd process.

Deprecated: setting the oom-score-adjust from the daemon itself is deprecated, and should be handled by the process-manager starting the daemon instead.

Source Files

remote_daemon.go remote_daemon_linux.go remote_daemon_options.go remote_daemon_options_linux.go utils_linux.go

Version
v24.0.2+incompatible
Published
May 25, 2023
Platform
linux/amd64
Imports
18 packages
Last checked
1 minute ago

Tools for package owners.