docker ps

List containers

Aliases

docker container ls, docker container list, docker container ps, docker ps

Options

NameTypeDefaultDescription
-a, --allboolShow all containers (default shows just running)
-f, --filterfilterFilter output based on conditions provided
--formatstringFormat 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/ for more information about formatting output with templates
-n, --lastint-1Show n last created containers (includes all states)
-l, --latestboolShow the latest created container (includes all states)
--no-truncboolDon't truncate output
-q, --quietboolOnly display container IDs
-s, --sizeboolDisplay total file sizes