docker container ls
List containers
Usage
docker container ls [OPTIONS]
Description
See docker ps for more information.
Options
Option | Short | Default | Description |
---|---|---|---|
--all | -a | Show all containers (default shows just running) | |
--filter | -f | Filter output based on conditions provided | |
--format | Format output using a custom template: 'table': Print output in table format with column headers (default) 'table TEMPLATE': Print output in table format using the given Go template 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Refer to https://docs.docker.com/go/formatting/open_in_new for more information about formatting output with templates | ||
--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 container IDs | |
--size | -s | Display total file sizes |