Skip to content

Commit f71bb1f

Browse files
committed
set systemdcgroup true by default in containerd config
1 parent fa9c89d commit f71bb1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

images/base/files/etc/containerd/config.toml

+7
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ version = 2
1919
runtime_type = "io.containerd.runc.v2"
2020
# Generated by "ctr oci spec" and modified at base container to mount poduct_uuid
2121
base_runtime_spec = "/etc/containerd/cri-base.json"
22+
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
23+
# use systemd cgroup by default
24+
SystemdCgroup = true
2225

2326
# Setup a runtime with the magic name ("test-handler") used for Kubernetes
2427
# runtime class tests ...
2528
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler]
29+
# same settings as runc
2630
runtime_type = "io.containerd.runc.v2"
31+
base_runtime_spec = "/etc/containerd/cri-base.json"
32+
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler.options]
33+
SystemdCgroup = true
2734

2835
[plugins."io.containerd.grpc.v1.cri"]
2936
# use fixed sandbox image

0 commit comments

Comments
 (0)