What is containerd? The Kubernetes container runtime

If you've run a Kubernetes cluster in the last few years, you've almost certainly used containerd without noticing. It's the container runtime under a large share of clusters, under Docker, and under managed services such as Amazon EKS and Google Kubernetes Engine. So what is containerd, and why does it matter for your exams?
containerd is a CNCF graduated project: a daemon for Linux and Windows that manages the whole container lifecycle on a host, from pulling and storing images to starting, supervising and stopping containers. Our containerd project page has its links and maturity in one place.
Key points
- containerd is the container runtime the kubelet talks to through the Container Runtime Interface (CRI). It joined the CNCF on 29 March 2017 and graduated on 28 February 2019.
- Docker Engine runs on top of containerd. Kubernetes stopped needing Docker when dockershim was removed in Kubernetes 1.24.
- You inspect it on a node with
crictl(the CRI view, what Kubernetes sees) orctr(containerd's own debugging tool). - The CKA's Cluster Architecture domain lists "Understand extension interfaces (CNI, CSI, CRI, etc.)" and installing clusters with kubeadm, which needs a runtime first.
What is containerd and what problem does it solve
A container image is just layers of files plus some metadata. Something has to pull it from a registry, unpack it, prepare a filesystem, set up namespaces and cgroups, start the process and watch it. containerd does all of that except the very last step: it hands the actual process creation to a low-level OCI runtime, usually runc.
The point is a small, stable core that other tools build on. Docker added a developer experience (builds, Compose, a friendly CLI) and moved the runtime part out into containerd. Kubernetes only needs the runtime part, so the kubelet can talk to containerd directly and skip Docker altogether.
The containerd site lists adopters including Docker, Google Kubernetes Engine, Amazon EKS, AWS Fargate, Azure Kubernetes Service, Bottlerocket, Kata Containers and Firecracker.
How containerd works with Kubernetes
The chain on a typical node looks like this:
kubelet --CRI (gRPC)--> containerd --> containerd-shim --> runc --> your container
- The kubelet asks for pod sandboxes and containers through the CRI. Since Kubernetes 1.26, it only works with v1 of the CRI API.
- containerd's CRI plugin answers those calls. It pulls images, creates the pod sandbox (the "pause" container) and starts containers.
- A shim sits between containerd and each container, so containers keep running if containerd restarts.
- runc creates the process with the right namespaces and cgroups, then gets out of the way.
containerd also has namespaces of its own (nothing to do with Kubernetes namespaces). They keep different clients' images and containers apart on the same daemon. The containerd docs are clear that they're an administrative construct, not a security boundary.
A small example: containerd on a kubeadm node
On Linux, containerd listens on /run/containerd/containerd.sock and reads /etc/containerd/config.toml. Generate a default config with:
containerd config default | sudo tee /etc/containerd/config.toml
The kubelet and the runtime must use the same cgroup driver, and Kubernetes recommends systemd with cgroup v2. For containerd 2.x, set:
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options]
SystemdCgroup = true
containerd 1.x uses the older plugin name, plugins."io.containerd.grpc.v1.cri", so check your version before you copy a snippet. Then restart it:
sudo systemctl restart containerd
To see what Kubernetes sees, point crictl at the socket in /etc/crictl.yaml:
runtime-endpoint: unix:///var/run/containerd/containerd.sock
image-endpoint: unix:///var/run/containerd/containerd.sock
timeout: 10
Then, on the node:
crictl pods # pod sandboxes on this node
crictl ps -a # containers, including exited ones
crictl images # images the runtime has pulled
crictl logs --tail=20 <id> # a container's logs
Pro tip: when kubectl can't reach the API server, crictl ps -a and crictl logs still work on a control plane node. They're how you find out why a static pod such as kube-apiserver keeps restarting.
containerd vs Docker, CRI-O and ctr
containerd vs Docker. Not really rivals. Docker Engine uses containerd underneath and adds the build and developer tooling. Images built with Docker are OCI images, and containerd runs them as they are.
containerd vs CRI-O. Both are CRI runtimes, and CRI-O is also a CNCF project. CRI-O is built only for Kubernetes; containerd is general-purpose and also serves Docker, nerdctl and others. For the exams, what matters is that both sit behind the same CRI, so the crictl commands are the same.
crictl vs ctr vs nerdctl. crictl speaks CRI and shows what the kubelet manages. ctr ships with containerd and is meant for debugging only. nerdctl is a separate, Docker-like CLI for containerd. One gotcha: ctr works per containerd namespace, so it won't show Kubernetes' containers unless you pick the right one.
containerd and the CNCF exams
containerd isn't an exam of its own, but it turns up across the Kubernetes ones. For the CKA, you prepare nodes for kubeadm and troubleshoot nodes and cluster components, which in practice means checking the runtime, its config and crictl. For the KCNA, know what a container runtime is and where the CRI fits.
How to get started with containerd
- Read the containerd project page on CertDirectory for its links, then the getting-started guide in the containerd repository.
- Build a two-node cluster with kubeadm on VMs, installing containerd, runc and the CNI plugins yourself. Set the systemd cgroup driver and watch what breaks if you don't.
- Practise
crictl pods,crictl ps -aandcrictl logsuntil you reach for them without thinking. - Try
nerdctl runif you want a Docker-like experience on a machine without Docker.
The latest release is 2.4.3, which came out on 3 December 2026 alongside 2.3.8. Use a 2.x release for anything new, and check the containerd docs for the version you install.
FAQ
Is containerd the same as Docker? No. Docker Engine is built on top of containerd. containerd is the runtime layer; Docker adds builds, Compose and the CLI.
Does Kubernetes still use Docker? Not as a runtime. dockershim was removed in Kubernetes 1.24, and the kubelet now talks to a CRI runtime such as containerd or CRI-O. Images built with Docker still run.
Is containerd a CNCF graduated project? Yes. It joined the CNCF on 29 March 2017 and graduated on 28 February 2019.
What's the difference between crictl and ctr?
crictl talks to any CRI runtime and shows pods and containers as Kubernetes sees them. ctr is containerd's own debugging client and works at a lower level, per containerd namespace.
Where is the containerd config file?
On Linux it's /etc/containerd/config.toml. You can generate a default one with containerd config default.
Spin up a kubeadm node this week and break it on purpose; that's how containerd sticks.