An industry-standard container runtime with an emphasis on simplicity, robustness and portability
open sourceApache-2.0self-hostablefree
containerd is a container runtime daemon for Linux and Windows that manages the whole container lifecycle on one host: pulling and pushing OCI images, storing them, unpacking them into snapshots, and running and supervising containers through runc or another OCI runtime. It's made to be embedded in larger systems rather than used directly: its built-in CRI plugin makes it the runtime under Kubernetes nodes, and it runs beneath Docker Engine, K3s and Talos Linux. Platforms extend it with a Go client, namespaces, plugins for runtimes and snapshotters, and NRI; people who want a CLI use the Docker-compatible nerdctl, a containerd sub-project, since the bundled ctr is only for debugging. It's a graduated CNCF project under Apache-2.0.
Ways to install
Package managers
Problems it solves
- pick a CRI-compatible runtime for the kubelet on my Kubernetes worker nodes
- pull images and run OCI containers on a server without installing the whole Docker stack
- embed container execution and image handling into our own platform from Go code
- run containers on Windows Server nodes as well as Linux hosts with the same runtime
- let several tools share one container daemon on a host without seeing each other's containers and images
- checkpoint a running container and restore it on another machine
- start containers from huge images before every layer has finished downloading
- run a container daemon as a non-root user using user namespaces
- swap the default low-level runtime for another OCI-compatible one for some workloads
- store container filesystems on ZFS, btrfs or devmapper instead of overlayfs
- configure registry mirrors, custom CA certificates and credentials per image registry on a node
- collect cgroup stats and out-of-memory events for each container on a host
- use docker run and docker compose style commands on a machine that only has this runtime
- inspect pods, containers and images directly on a Kubernetes node while debugging
- hook custom CPU and memory placement logic into container creation on Kubernetes nodes
- get container runtime binaries for RISC-V, POWER or IBM Z servers
Features
- daemon for Linux and Windows managing the full container lifecycle on a host
- OCI Image Spec and OCI Runtime Spec support, with runc as the default runtime
- image push and pull from any OCI Distribution-compliant registry, with per-host registry configuration
- built-in CRI plugin, enabled by default, for use as the Kubernetes container runtime
- namespaces so several clients share one daemon without conflicts
- content-addressable storage shared across namespaces
- snapshotters: overlayfs (default), native, btrfs, ZFS, devmapper, blockfile, EROFS; external ones such as stargz and Nydus
- checkpoint and restore of containers with CRIU
- container-level metrics, cgroup stats and OOM events
- plugins for runtimes, snapshotters, content stores and extra gRPC services, including external plugins
View 4 more
- Node Resource Interface (NRI) for plugins that adjust containers
- Go client package with a smart-client design
- rootless operation with RootlessKit
- ctr CLI for debugging; Docker-compatible nerdctl as a sub-project
Limitations
- Doesn't build container images: image building is left to higher-level tools built on top of it3
- Doesn't set up container networking: network interfaces come from higher-level systems such as CNI plugins34
- Doesn't schedule containers across machines: it's scoped to a single host, with no concept of a distributed system3
- No user-friendly CLI included: the bundled ctr is a bare-bones debugging tool with no stable interface3
- No official macOS support: darwin/arm64 is only compile-checked in CI, with no release binaries or tests5
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what containerd does.
