%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/node_modules/npm/man/man5/
Upload File :
Create Path :
Current File : //lib/node_modules/npm/man/man5/containerd-config.toml.5

.nh
.TH /etc/containerd/config.toml 5 08/08/2018
.SH SYNOPSIS
.PP
The \fBconfig.toml\fP file is a configuration file for the containerd daemon. The
file must be placed at \fB/etc/containerd/config.toml\fP or specified with the
\fB\-\-config\fP option of \fBcontainerd\fP to be used by the daemon. If the file
does not exist at the appropriate location or is not provided via the
\fB\-\-config\fP option containerd uses its default configuration settings, which
can be displayed with the \fBcontainerd config(1)\fP command.

.SH DESCRIPTION
.PP
The TOML file used to configure the containerd daemon settings has a short
list of global settings followed by a series of sections for specific areas
of daemon configuration. There is also a section for \fBplugins\fP that allows
each containerd plugin to have an area for plugin\-specific configuration and
settings.

.SH FORMAT
.TP
\fBroot\fP
The root directory for containerd metadata. (Default: "/var/lib/containerd")

.TP
\fBstate\fP
The state directory for containerd (Default: "/run/containerd")

.TP
\fBoom\_score\fP
The out of memory (OOM) score applied to the containerd daemon process (Default: 0)

.TP
\fB[grpc]\fP
Section for gRPC socket listener settings. Contains three properties:
.RS
.IP \(bu 2
\fBaddress\fP (Default: "/run/containerd/containerd.sock")
.IP \(bu 2
\fBuid\fP (Default: 0)
.IP \(bu 2
\fBgid\fP (Default: 0)

.RE


.TP
\fB[debug]\fP
Section to enable and configure a debug socket listener. Contains four properties:
.RS
.IP \(bu 2
\fBaddress\fP (Default: "/run/containerd/debug.sock")
.IP \(bu 2
\fBuid\fP (Default: 0)
.IP \(bu 2
\fBgid\fP (Default: 0)
.IP \(bu 2
\fBlevel\fP (Default: "info") sets the debug log level

.RE


.TP
\fB[metrics]\fP
Section to enable and configure a metrics listener. Contains two properties:
.RS
.IP \(bu 2
\fBaddress\fP (Default: "") Metrics endpoint does not listen by default
.IP \(bu 2
\fBgrpc\_histogram\fP (Default: false) Turn on or off gRPC histogram metrics

.RE


.TP
\fB[cgroup]\fP
Section for Linux cgroup specific settings
.RS
.IP \(bu 2
\fBpath\fP (Default: "") Specify a custom cgroup path for created containers

.RE


.TP
\fB[plugins]\fP
The plugins section contains configuration options exposed from installed plugins.
The following plugins are enabled by default and their settings are shown below.
Plugins that are not enabled by default will provide their own configuration values
documentation.
.RS
.IP \(bu 2
\fB[plugins.cgroup]\fP has one option \fBno\_prometheus\fP (Default: \fBfalse\fP)
.IP \(bu 2
\fB[plugins.diff]\fP has one option \fBdefault\fP, a list by default set to \fB["walking"]\fP
.IP \(bu 2
\fB[plugins.linux]\fP has several options for configuring the runtime, shim, and related options:
\fBshim\fP specifies the shim binary (Default: \fB"containerd\-shim"\fP),
\fBruntime\fP is the OCI compliant runtime binary (Default: \fB"runc"\fP),
\fBruntime\_root\fP is the root directory used by the runtime (Default: \fB""\fP),
\fBno\_shim\fP specifies whether to use a shim or not (Default: \fBfalse\fP),
\fBshim\_debug\fP turns on debugging for the shim (Default: \fBfalse\fP)
.IP \(bu 2
\fB[plugins.scheduler]\fP has several options that perform advanced tuning for the scheduler:
\fBpause\_threshold\fP is the maximum amount of time GC should be scheduled (Default: \fB0.02\fP),
\fBdeletion\_threshold\fP guarantees GC is scheduled after n number of deletions (Default: \fB0\fP [not triggered]),
\fBmutation\_threshold\fP guarantees GC is scheduled after n number of database mutations (Default: \fB100\fP),
\fBschedule\_delay\fP defines the delay after trigger event before scheduling a GC (Default \fB"0ms"\fP [immediate]),
\fBstartup\_delay\fP defines the delay after startup before scheduling a GC (Default \fB"100ms"\fP)

.RE


.SH EXAMPLE
.PP
The following is a complete \fBconfig.toml\fP default configuration example:

.PP
.RS

.nf
root = "/var/lib/containerd"
state = "/run/containerd"
oom\_score = 0

[grpc]
  address = "/run/containerd/containerd.sock"
  uid = 0
  gid = 0

[debug]
  address = "/run/containerd/debug.sock"
  uid = 0
  gid = 0
  level = "info"

[metrics]
  address = ""
  grpc\_histogram = false

[cgroup]
  path = ""

[plugins]
  [plugins.cgroups]
    no\_prometheus = false
  [plugins.diff]
    default = ["walking"]
  [plugins.linux]
    shim = "containerd\-shim"
    runtime = "runc"
    runtime\_root = ""
    no\_shim = false
    shim\_debug = false
  [plugins.scheduler]
    pause\_threshold = 0.02
    deletion\_threshold = 0
    mutation\_threshold = 100
    schedule\_delay = 0
    startup\_delay = 100000000

.fi
.RE

.SH BUGS
.PP
Please file any specific issues that you encounter at
https://github.com/containerd/containerd.

.SH AUTHOR
.PP
Phil Estes estesp@gmail.com
\[la]mailto:estesp@gmail.com\[ra]

.SH SEE ALSO
.PP
ctr(1), containerd\-config(1), containerd(1)

Zerion Mini Shell 1.0