Skip to content

Container runtime

A container runtime is the software that unpacks a container image and starts the process inside it, using kernel primitives (namespaces, cgroups, seccomp) for isolation; containerd, CRI-O and runc are the dominant implementations.

Definition

What it is

The runtime lifecycle is two stages: a high-level runtime (containerd, CRI-O) that pulls images, manages the network, sets up the filesystem, and a low-level runtime (runc, crun) that calls clone() with the right namespaces and execve() on the entrypoint.

Why it matters

The runtime decides the isolation guarantees. Different runtimes = different syscall filters, different memory management, different startup time. K8s abstracts it via the Container Runtime Interface (CRI) so any runtime can be plugged.

Connections

Sources