What Is containerd? How Kubernetes Starts a Pod’s Containers
containerd manages container images and lifecycle on a node. Follow the request from kubelet through the CRI plugin to a runtime shim and OCI runtime, then use a safe diagnostic sequence to locate failures.
What Is containerd? How Kubernetes Starts a Pod’s Containers
containerd is an open-source container runtime that manages images and container lifecycle. On a Kubernetes node, kubelet usually sends Pod and image requests through containerd’s Container Runtime Interface (CRI) plugin. containerd then delegates low-level execution through a runtime shim to an OCI runtime such as runc. It is neither the Kubernetes scheduler nor the low-level runtime that directly creates the process.
What job does containerd do?
Starting a container involves obtaining an image, preparing its filesystem, applying isolation and resource settings, starting the process, and later stopping and cleaning it up. containerd coordinates image storage and these lifecycle operations so Kubernetes and other clients can use a node’s container capabilities. Our runtime overview describes the broader layers; this article focuses on containerd’s concrete role on a Kubernetes node.
containerd does not choose which node should run a Pod. The Kubernetes scheduler selects a node; that node’s kubelet then works to make the Pod’s desired state real through the runtime. “Kubernetes uses containerd” therefore does not mean containerd runs all of Kubernetes.
Where do CRI and OCI fit?
CRI is the gRPC interface between kubelet and a container runtime. containerd’s CRI plugin receives those calls and coordinates containerd’s image and lifecycle services. OCI’s runtime specification is a lower-level contract used to create and start a container. These interfaces cover different boundaries.
In a common Linux setup, containerd launches a runtime shim; containerd-shim-runc-v2 invokes runc. containerd coordinates images, metadata, snapshots, and lifecycle. The shim maintains the runtime connection, while runc creates and starts or stops the process in its configured isolation environment. The OCI image format standardizes image representation; the OCI runtime specification addresses execution configuration.
kubelet → CRI (gRPC) → containerd CRI plugin
├─ image and container lifecycle
├─ Pod sandbox and CNI network setup
└─ runtime shim → runc → container processShim and plugin details vary by containerd version and configuration. This diagram simplifies the common runc path; it is not a description of every node.
What happens when kubelet requests a Pod?
For a single-container Pod, kubelet first asks the CRI runtime service to create a Pod sandbox. The CRI plugin prepares the Pod’s namespaces and sandbox, then coordinates the Container Network Interface (CNI) plugin to configure networking. Kubelet requests the application image through the CRI image service and then asks the runtime service to create and start the container. containerd prepares the image filesystem snapshot and execution configuration, and delegates process creation to the shim and OCI runtime.
This sequence helps narrow failures. A Pod stuck in Pending may have a scheduling or image-access issue. If it is assigned to a node but sandbox creation fails, inspect CRI connectivity, containerd configuration, and CNI. If a container is created and then exits, inspect its start command and logs. Do not infer the cause from a status label alone; compare events with component logs.
How can you inspect a containerd node?
These read-only checks are a general Linux example. For managed Kubernetes, follow the provider’s documentation and operational policy; do not change managed node settings ad hoc.
sudo systemctl status containerd kubelet
sudo crictl --runtime-endpoint unix:///run/containerd/containerd.sock info
sudo crictl --runtime-endpoint unix:///run/containerd/containerd.sock pods
sudo journalctl -u containerd -u kubelet --since "15 minutes ago"Check that both services are running. If crictl info cannot connect, compare kubelet’s --container-runtime-endpoint with the actual socket and the endpoint used by crictl. /run/containerd/containerd.sock is common on Linux but can be changed. Check that the CRI plugin is not disabled in containerd’s configuration. Package defaults and configuration keys differ between containerd 1.x and 2.x, so use documentation for the installed version. A configuration change may require an approved containerd restart. Compare Pod state with kubelet events, crictl pods, and containerd/kubelet logs to distinguish image pull, CNI sandbox, and OCI runtime failures.
ctr is a debugging client for containerd internals. For Kubernetes CRI state, crictl speaks the CRI API more directly. Do not assume ctr namespaces are the same as Kubernetes Pod namespaces. Runtime CLI output also does not replace kubectl describe pod and cluster events.
How does it relate to Docker, and what does it not provide?
Docker Engine is a developer-facing product with CLI/API and additional features; containerd is a lower-level component that manages images and container lifecycle. Docker may use containerd internally, but the names are not interchangeable. Kubernetes can use any CRI-compatible runtime, so Docker Engine is not required on every Kubernetes node. A developer’s docker command and a node’s CRI endpoint are different interfaces.
Installing containerd does not configure network policy, persistent storage, image supply-chain verification, secrets, or the Kubernetes control plane. Those responsibilities belong to other components and policies. In an incident, locate the failing stage—CRI connection, image retrieval, sandbox/CNI setup, or shim/OCI execution—instead of calling every node failure a “containerd problem.”
Sources and scope
[containerd CRI plugin architecture](https://containerd.io/docs/main/cri/architecture/)
[containerd Runtime v2 and shims](https://containerd.io/docs/main/runtime-v2/)
[containerd getting started and CLI guidance](https://github.com/containerd/containerd/blob/main/docs/getting-started.md)
[Kubernetes CRI overview](https://kubernetes.io/docs/concepts/containers/cri/)
[Kubernetes container runtime setup](https://kubernetes.io/docs/setup/production-environment/container-runtimes/)
[Find a node’s runtime endpoint](https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use/)
Based on official documents checked on 22 November 2026. It describes a common Linux node setup; managed services, Windows nodes, custom shims, and containerd versions can change paths and details.