Skip to content

Commit 728d5c5

Browse files
sachaosthaJeztah
authored andcommitted
Use version 2 config and mention containerd config command
Signed-off-by: Takumasa Sakao <[email protected]> (cherry picked from commit 03a5e64) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 3787ef4 commit 728d5c5

1 file changed

Lines changed: 7 additions & 26 deletions

File tree

docs/PLUGINS.md

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -233,35 +233,16 @@ to load.
233233
#### Configuration
234234

235235
Plugins are configured using the `[plugins]` section of containerd's config.
236-
Every plugin can have its own section using the pattern `[plugins.<plugin id>]`.
236+
Every plugin can have its own section using the pattern `[plugins."<plugin type>.<plugin id>"]`.
237237

238238
example configuration
239239
```
240+
version = 2
241+
240242
[plugins]
241-
[plugins.cgroups]
243+
[plugins."io.containerd.monitor.v1.cgroups"]
242244
no_prometheus = false
243-
[plugins.cri]
244-
stream_server_address = ""
245-
stream_server_port = "10010"
246-
enable_selinux = false
247-
sandbox_image = "k8s.gcr.io/pause:3.6"
248-
stats_collect_period = 10
249-
systemd_cgroup = false
250-
[plugins.cri.containerd]
251-
snapshotter = "overlayfs"
252-
[plugins.cri.containerd.default_runtime]
253-
runtime_type = "io.containerd.runtime.v1.linux"
254-
runtime_engine = ""
255-
runtime_root = ""
256-
[plugins.cri.containerd.untrusted_workload_runtime]
257-
runtime_type = ""
258-
runtime_engine = ""
259-
runtime_root = ""
260-
[plugins.cri.cni]
261-
bin_dir = "/opt/cni/bin"
262-
conf_dir = "/etc/cni/net.d"
263-
[plugins.cri.registry]
264-
[plugins.cri.registry.mirrors]
265-
[plugins.cri.registry.mirrors."docker.io"]
266-
endpoint = ["https://registry-1.docker.io"]
267245
```
246+
247+
To see full configuration example run `containerd config default`.
248+
If you want to get the configuration combined with your configuration, run `containerd config dump`.

0 commit comments

Comments
 (0)