package supervisor

import "github.com/docker/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 WithDebugAddress

func WithDebugAddress(addr string) DaemonOpt

WithDebugAddress defines at which location the debug GRPC connection should be made

func WithLogLevel

func WithLogLevel(lvl string) DaemonOpt

WithLogLevel defines which log level to starts containerd with. This only makes sense if WithStartDaemon() was set to true.

func WithMetricsAddress

func WithMetricsAddress(addr string) DaemonOpt

WithMetricsAddress defines at which location the debug GRPC connection should be made

func WithPlugin

func WithPlugin(name string, conf interface{}) DaemonOpt

WithPlugin allow configuring a containerd plugin configuration values passed needs to be quoted if quotes are needed in the toml format.

func WithRemoteAddr

func WithRemoteAddr(addr string) DaemonOpt

WithRemoteAddr sets the external containerd socket to connect to.

func WithRemoteAddrUser

func WithRemoteAddrUser(uid, gid int) DaemonOpt

WithRemoteAddrUser sets the uid and gid to create the RPC address with

Source Files

remote_daemon.go remote_daemon_options.go

Version
v23.0.14+incompatible
Published
Jun 5, 2024
Platform
js/wasm
Imports
16 packages
Last checked
4 minutes ago

Tools for package owners.