nerdctl
docker-compatible CLI for containerd, the industry-standard container runtime
TLDR
SYNOPSIS
nerdctl command [options] [arguments]
DESCRIPTION
nerdctl is a Docker-compatible CLI for containerd, the industry-standard container runtime. It provides familiar Docker commands while leveraging containerd's capabilities, including rootless containers and lazy-pulling images.The tool supports Docker Compose files, Dockerfile builds, and most Docker CLI syntax. It can work with both Docker and containerd images and registries.
PARAMETERS
-a, --all
Show all containers (default: running only)-i, --interactive
Keep STDIN open-t, --tty
Allocate a pseudo-TTY-d, --detach
Run container in background--name name
Assign name to container-p, --publish port
Publish container port (host:container)-v, --volume mount
Bind mount a volume (host:container)-f, --follow
Follow log output--rm
Remove container after exit-e, --env VAR=VALUE
Set environment variable--network network
Connect to a network
COMMANDS
run
Run a new containerps
List containersstart
Start stopped containersstop
Stop running containersexec
Execute command in running containerpull
Pull image from registrypush
Push image to registryimages
List imagesrm
Remove containersrmi
Remove imagesbuild
Build image from Dockerfilelogs
Fetch container logscompose
Docker Compose compatible commands
CAVEATS
Some Docker features may not have exact equivalents. Rootless mode requires user namespace configuration. Image compatibility depends on container runtime configuration.
HISTORY
nerdctl was developed by containerd maintainers as part of the containerd project. It provides a user-friendly CLI for containerd, which is used by Kubernetes and other container orchestrators as the underlying runtime.
SEE ALSO
docker(1), containerd(8), ctr(1), podman(1)
