Use it when containers fail to start at the runtime level, or to understand which runtime a Kubernetes node uses.
Container Runtimes
A container runtime starts containers: high-level runtimes (containerd, CRI-O, Docker Engine) manage images and lifecycle; low-level OCI runtimes (runc, crun) create the namespaces and cgroups.
1. Which runtime? kubectl get nodes -o wide (CONTAINER-RUNTIME) or docker info.
2. Runtime service: systemctl status containerd.
3. Node-level view: crictl ps -a, crictl logs <id>.
4. OCI errors (runc) in the runtime journal.
5. cgroup driver matches kubelet (systemd).
kubelet/docker → CRI/containerd → shim → runc → container process
Failures often come from a dead daemon/socket, exhausted runtime storage, stale shim/process state, incompatible configuration, or assuming one runtime command model applies to another. CRI success also does not prove kubelet, CNI or the workload is healthy. Preserve the first divergent observation and repeat the same bounded verification after remediation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Containers owns runtime lifecycle and local runtime state. Linux owns generic service/process/filesystem diagnosis; Kubernetes Topics own orchestration above the runtime.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
Check the runtime and version actually in use, daemon/socket reachability where applicable, runtime storage/state directories, image inventory and one bounded create/start/stop/inspect cycle. Distinguish runtime health from the health of a containerized service.
Step 2 Failure signatures and limits Narrow the fault
Failures often come from a dead daemon/socket, exhausted runtime storage, stale shim/process state, incompatible configuration, or assuming one runtime command model applies to another. CRI success also does not show kubelet, CNI or the workload is healthy.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
containerd is the container runtime daemon that pulls images, manages snapshots and starts containers through runc; Kubernetes talks to it through the CRI plugin.
Subtopic runc and OCI Runtime Specrunc is the low-level OCI runtime that creates the namespaces and cgroups and starts the container process from a config.json bundle.
Subtopic Podman and Rootless ContainersPodman runs OCI containers without a central daemon and can run them rootless, mapping container root to an unprivileged host user.
Kubernetes talks to containerd or CRI-O through CRI; Docker Engine is no longer used directly by kubelet. Use crictl on Kubernetes nodes and docker only where Docker Engine is the runtime.
crictl ps -a— containers on a Kubernetes nodedocker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
ReferenceWhat it is1 section · depth on demand
Operating model
Container Runtimes covers the software that turns image/configuration intent into running container processes. Docker Engine, containerd and Podman expose different control surfaces, while Kubernetes normally reaches a CRI-compatible runtime through kubelet rather than directly operating application containers through Docker-style commands.
ReferenceHow it works1 section · depth on demand
In depth
Container runtimes create and run containers. The stack has layers: a high-level runtime manages images, storage and networking (containerd, CRI-O), and a low-level OCI runtime actually creates the isolated process with namespaces and cgroups (runc, crun, or sandboxed runtimes like gVisor and Kata Containers).
| Layer | Examples | Role |
|---|---|---|
| User tools | Docker CLI, Podman, nerdctl, crictl | Interact with runtimes |
| High-level runtime | containerd, CRI-O | Images, snapshots, lifecycle, CRI for Kubernetes |
| OCI runtime | runc, crun | Start the isolated process |
| Sandboxed runtimes | gVisor (runsc), Kata Containers | Stronger isolation via user-space kernel or micro-VMs |
Kubernetes talks to runtimes via the Container Runtime Interface (CRI); since Kubernetes 1.24 it no longer uses Docker Engine directly, but images built with Docker run unchanged on containerd and CRI-O.
crictl ps # on a Kubernetes node
crictl inspect <id>
ctr -n k8s.io images ls
podman ps --all
ReferenceImportant terms & boundaries1 section · depth on demand
Scope map
- Docker Engine
- containerd
- Podman
- CRI and runtime boundaries
- Runtime sockets, daemons and local state
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Kubernetes node or plain containerd host; crictl configured for the containerd socket.
# /etc/containerd/config.toml (excerpt)
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = trueExpected output
crictl info | grep -E '"runtimeType"|"SystemdCgroup"'Expected state: The CRI plugin uses runc v2 with the systemd cgroup driver, matching the kubelet cgroupDriver.
"runtimeType": "io.containerd.runc.v2",
"SystemdCgroup": true,A cgroup driver mismatch between kubelet and containerd causes Pods to fail or restart; both must say systemd. Illustrative authored output: field layout matches the tool, values will differ in your environment.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.
Basis: https://containerd.io/docs/ · confidence 92%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Container Runtimes verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Container Runtimes.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Docker Engine | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | containerd / Podman | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | CRI and runtime boundaries | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Runtime sockets, daemons and local state | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Containers owns runtime lifecycle and local runtime state. Linux owns generic service/process/filesystem diagnosis; Kubernetes Topics own orchestration above the runtime.