Interview Prep/Docker/Security, rootless, Podman and containerd

containerd: `failed to create shim task: OCI runtime create failed: ... expected cgroupsPath to be of format "slice:prefix:name"`

AdvancedTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → Mismatch: kubelet uses systemd cgroup driver while containerd/runc uses cgroupfs (or vice versa).

Diagnose →

grep -n SystemdCgroup /etc/containerd/config.toml
grep cgroupDriver /var/lib/kubelet/config.yaml

Fix → Set SystemdCgroup = true under [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] (or the v3 config equivalent) and cgroupDriver: systemd; restart both.

Prevent → Align drivers when bootstrapping nodes (kubeadm defaults).

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd