Container runtime
A container runtime sets up namespaces and cgroups for a container and starts its process.
A container runtime is the program that turns a container image and its configuration into a running container. It creates the namespaces that give the container its own view of processes, files and the network. It also creates the cgroups that limit how much processor time and memory the container can use. A widely used low-level runtime of this kind is runc.
A container shares the kernel of the host, so the runtime boots nothing. It only prepares the isolation around one process and then starts that process. For this reason, a container usually starts in tens of milliseconds. The runtime also applies other settings from the configuration, such as dropped capabilities and seccomp filters.
Higher-level tools such as containerd or the Docker engine call a low-level runtime to start each container. They handle images, storage and networking, and leave the final start-up step to the runtime. Some runtimes put each container inside a lightweight virtual machine or a user-space kernel, such as gVisor, for stronger isolation. Sandbox platforms choose a runtime based on how much they trust the code inside.