contaiNERD CTL: Docker-compatible CLI for containerd
open sourceApache-2.0self-hostablefree
nerdctl is a command-line tool for containerd with the same commands and flags as the Docker CLI, including nerdctl compose up for Compose files. It adds features containerd makes possible: rootless mode, lazy pulling of eStargz, Nydus, OverlayBD and SOCI images, encrypted images with ocicrypt, image signing and verification with cosign or Notation, and optional peer-to-peer image distribution over IPFS. It's a non-core subproject of containerd, a CNCF project, released as a minimal binary or a full archive that bundles containerd, CNI plugins, BuildKit and RootlessKit. It runs on Linux, with experimental Windows containers, and on macOS through Lima's VMs; Apache-2.0.
Ways to install
Package managers
Problems it solves
- use the docker commands I already know on a containerd host without installing the Docker daemon
- run docker-compose files on a server that only has containerd
- debug containers on my Kubernetes nodes with a familiar Docker-style CLI
- start big container images in seconds by lazily pulling only the layers they need
- run containers as a normal user without root on a containerd-based setup
- sign and verify container images with cosign as part of push and pull
- pull and run encrypted container images
- share container images between machines peer to peer over IPFS instead of a central registry
Features
- same UI/UX as the docker CLI, including nerdctl compose
- rootless mode with RootlessKit
- lazy pulling: Stargz, Nydus, OverlayBD and SOCI
- encrypted images (ocicrypt)
- image signing and verification with cosign or Notation (pull --verify, push --sign)
- optional IPFS peer-to-peer image distribution
- full release archive bundling containerd, CNI plugins, BuildKit and RootlessKit
- Linux, experimental Windows containers, FreeBSD docs, macOS through Lima
Limitations
- No Docker Swarm or plugin commands: swarm, node, service, config, secret, stack and plugin commands aren't implemented and won't be3
- Doesn't run natively on macOS: macOS users run it in a Lima Linux VM, and the Homebrew formula is Linux-only4
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what nerdctl does.
- Podman A tool for managing OCI containers and pods
- Docker Engine Open source container engine: the dockerd daemon, the Docker Engine API and the docker CLI
