Container Runtimes
Cheat sheet · https://pcornel.dk/topic.php?topic=6075
Answer
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.
Remember
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.
First checks
crictl ps -a— containers on a Kubernetes nodedocker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
Verify in this order
kubelet/docker → CRI/containerd → shim → runc → container process
Where it usually breaks
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.
Container Runtimes verification boundary matrix
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6075