Pcornel
Containers · Container Runtimes

containerd

Cheat sheet · https://pcornel.dk/topic.php?topic=6127

Back to the Topic

Answer

containerd is the industry-standard container runtime daemon: it pulls images, manages snapshots and runs containers via runc shims. It is the default runtime for most Kubernetes distributions.

Remember

Use crictl (CRI view) or ctr -n k8s.io (low level). Configuration in /etc/containerd/config.toml (SystemdCgroup = true for kubelet's systemd driver). Registry mirrors are configured there too.

First checks

  • crictl images — images on the node
  • docker ps -a — containers and exit codes
  • docker logs <c> — container output
  • docker inspect <c> — config, mounts, network, state

Verify in this order

kubelet → CRI → containerd → shim → runc

Where it usually breaks

Using ctr without -n k8s.io shows an empty list and looks like containers are missing.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6127

Confirmation

Confirm action

Continue?