Pcornel
Containers

Container Runtimes

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

Back to the Topic

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 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/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

BoundaryInspectHealthy interpretationDo not infer
IntentDocker EngineIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planecontainerd / PodmanOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateCRI and runtime boundariesIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeRuntime sockets, daemons and local stateThe original bounded check succeeds in the same time windowProduction 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

Confirmation

Confirm action

Continue?