@@ -21,17 +21,21 @@ The explanation and default value of each configuration item are as follows:
2121 # stats_collect_period is the period (in seconds) of snapshots stats collection.
2222 stats_collect_period = 10
2323
24- # systemd_cgroup enables systemd cgroup support.
24+ # systemd_cgroup enables systemd cgroup support. This only works for runtime
25+ # type "io.containerd.runtime.v1.linux".
26+ # DEPRECATED: use Runtime.Options for runtime specific config for shim v2 runtimes.
27+ # For runtime "io.containerd.runc.v1", use the option `SystemdCgroup`.
2528 systemd_cgroup = false
2629
27- # enable_tls_streaming enables the TLS streaming support.
30+ # enable_tls_streaming enables the TLS streaming support.
2831 # It generates a self-sign certificate unless the following x509_key_pair_streaming are both set.
2932 enable_tls_streaming = false
30-
33+
3134 # "plugins.cri.x509_key_pair_streaming" contains a x509 valid key pair to stream with tls.
3235 [plugins .cri .x509_key_pair_streaming ]
3336 # tls_cert_file is the filepath to the certificate paired with the "tls_key_file"
3437 tls_cert_file = " "
38+
3539 # tls_key_file is the filepath to the private key paired with the "tls_cert_file"
3640 tls_key_file = " "
3741
@@ -46,7 +50,10 @@ The explanation and default value of each configuration item are as follows:
4650 # snapshotter is the snapshotter used by containerd.
4751 snapshotter = " overlayfs"
4852
49- # no_pivot disables pivot-root (linux only), required when running a container in a RamDisk with runc
53+ # no_pivot disables pivot-root (linux only), required when running a container in a RamDisk with runc.
54+ # This only works for runtime type "io.containerd.runtime.v1.linux".
55+ # DEPRECATED: use Runtime.Options for runtime specific config for shim v2 runtimes.
56+ # For runtime "io.containerd.runc.v1", use the option `NoPivotRoot`.
5057 no_pivot = false
5158
5259 # "plugins.cri.containerd.default_runtime" is the runtime to use in containerd.
@@ -55,17 +62,41 @@ The explanation and default value of each configuration item are as follows:
5562 runtime_type = " io.containerd.runtime.v1.linux"
5663
5764 # runtime_engine is the name of the runtime engine used by containerd.
65+ # This only works for runtime type "io.containerd.runtime.v1.linux".
66+ # DEPRECATED: use Runtime.Options for runtime specific config for shim v2 runtimes.
67+ # For runtime "io.containerd.runc.v1", use the option `BinaryName`.
5868 runtime_engine = " "
5969
6070 # runtime_root is the directory used by containerd for runtime state.
71+ # This only works for runtime type "io.containerd.runtime.v1.linux".
72+ # DEPRECATED: use Runtime.Options for runtime specific config for shim v2 runtimes.
73+ # For runtime "io.containerd.runc.v1", use the option `Root`.
6174 runtime_root = " "
6275
63- # "plugins.cri.containerd.untrusted_workload_runtime" is a runtime to run untrusted workloads on it.
76+ # "plugins.cri.containerd.default_runtime.options" is options specific to
77+ # the default runtime. The options type for "io.containerd.runtime.v1.linux" is:
78+ # https://github.com/containerd/containerd/blob/v1.2.0-rc.1/runtime/linux/runctypes/runc.pb.go#L40
79+ # NOTE: when `options` is specified, all related deprecated options will
80+ # be ignored, including `systemd_cgroup`, `no_pivot`, `runtime_engine`
81+ # and `runtime_root`.
82+ [plugins .cri .containerd .default_runtime .options ]
83+ # Runtime is the binary name of the runtime.
84+ Runtime = " "
85+
86+ # RuntimeRoot is the root directory of the runtime.
87+ RuntimeRoot = " "
88+
89+ # CriuPath is the criu binary path.
90+ CriuPath = " "
6491
92+ # SystemdCgroup enables systemd cgroups.
93+ SystemdCgroup = false
94+
95+ # "plugins.cri.containerd.untrusted_workload_runtime" is a runtime to run untrusted workloads on it.
6596 # DEPRECATED: use plugins.cri.runtimes instead. If provided, this runtime is mapped to the
66- # runtime handler named 'untrusted'. It is a configuration error to provide both the (now
67- # deprecated) UntrustedWorkloadRuntime and a handler in the Runtimes handler map (below) for
68- # 'untrusted' workloads at the same time. Please provide one or the other.
97+ # runtime handler named 'untrusted'. It is a configuration error to provide both the (now
98+ # deprecated) UntrustedWorkloadRuntime and a handler in the Runtimes handler map (below) for
99+ # 'untrusted' workloads at the same time. Please provide one or the other.
69100 [plugins .cri .containerd .untrusted_workload_runtime ]
70101 # runtime_type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux
71102 runtime_type = " "
@@ -76,18 +107,43 @@ The explanation and default value of each configuration item are as follows:
76107 # runtime_root is the directory used by containerd for runtime state.
77108 runtime_root = " "
78109
79- # plugins.cri.containerd.runtimes is a map from CRI RuntimeHandler strings, which specify types
80- # of runtime configurations, to the matching configurations. In this example,
81- # 'runtime_handler_name ' is the RuntimeHandler string to match.
82- [plugins .cri .containerd .runtimes .runtime_handler_name ]
110+ # plugins.cri.containerd.runtimes is a map from CRI RuntimeHandler strings, which specify types
111+ # of runtime configurations, to the matching configurations. In this example,
112+ # 'runc ' is the RuntimeHandler string to match.
113+ [plugins .cri .containerd .runtimes .runc ]
83114 # runtime_type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux
84- runtime_type = " "
115+ runtime_type = " io.containerd.runc.v1 "
85116
86- # runtime_engine is the name of the runtime engine used by containerd.
87- runtime_engine = " "
117+ # "plugins.cri.containerd.runtimes.runc.options" is options specific to
118+ # "io.containerd.runc.v1". Its corresponding options type is:
119+ # https://github.com/containerd/containerd/blob/v1.2.0-rc.1/runtime/v2/runc/options/oci.pb.go#L39.
120+ [plugins .cri .containerd .runtimes .runc .options ]
121+ # NoPivotRoot disables pivot root when creating a container.
122+ NoPivotRoot = false
88123
89- # runtime_root is the directory used by containerd for runtime state.
90- runtime_root = " "
124+ # NoNewKeyring disables new keyring for the container.
125+ NoNewKeyring = false
126+
127+ # ShimCgroup places the shim in a cgroup.
128+ ShimCgroup = " "
129+
130+ # IoUid sets the I/O's pipes uid.
131+ IoUid = 0
132+
133+ # IoGid sets the I/O's pipes gid.
134+ IoGid = 0
135+
136+ # BinaryName is the binary name of the runc binary.
137+ BinaryName = " "
138+
139+ # Root is the runc root directory.
140+ Root = " "
141+
142+ # CriuPath is the criu binary path.
143+ CriuPath = " "
144+
145+ # SystemdCgroup enables systemd cgroups.
146+ SystemdCgroup = false
91147
92148 # "plugins.cri.cni" contains config related to cni
93149 [plugins .cri .cni ]
0 commit comments