Description
List containers
Usage
docker container ls [OPTIONS]
Options
| Name, shorthand | Default | Description |
|---|---|---|
--all , -a |
Show all containers (default shows just running) | |
--filter , -f |
Filter output based on conditions provided | |
--format |
Pretty-print containers using a Go template | |
--last , -n |
-1 |
Show n last created containers (includes all states) |
--latest , -l |
Show the latest created container (includes all states) | |
--no-trunc |
Don’t truncate output | |
--quiet , -q |
Only display numeric IDs | |
--size , -s |
Display total file sizes |
Parent command
| Command | Description |
|---|---|
| Manage containers |
Related commands
| Command | Description |
|---|---|
| Attach local standard input, output, and error streams to a running container | |
| Create a new image from a container’s changes | |
| Copy files/folders between a container and the local filesystem | |
| Create a new container | |
| Inspect changes to files or directories on a container’s filesystem | |
| Run a command in a running container | |
| Export a container’s filesystem as a tar archive | |
| Display detailed information on one or more containers | |
| Kill one or more running containers | |
| Fetch the logs of a container | |
| List containers | |
| Pause all processes within one or more containers | |
| List port mappings or a specific mapping for the container | |
| Remove all stopped containers | |
| Rename a container | |
| Restart one or more containers | |
| Remove one or more containers | |
| Run a command in a new container | |
| Start one or more stopped containers | |
| Display a live stream of container(s) resource usage statistics | |
| Stop one or more running containers | |
| Display the running processes of a container | |
| Unpause all processes within one or more containers | |
| Update configuration of one or more containers | |