nerdctl
docker-compatible CLI for containerd, the industry-standard container runtime
TLDR
List all containers (running and stopped)
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)-it, --interactive --tty
Interactive mode with pseudo-TTY-d, --detach
Run container in background--name _name_
Assign name to container-p, --publish _port_
Publish container port-v, --volume _mount_
Bind mount a volume-f, --follow
Follow log output--rm
Remove container after exit
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)
