← All notes

docker ps: list containers

Answer: docker container ls lists containers. The same command is also available as docker ps, docker container list, and docker container ps. The default shows just running containers; --all will show all containers.

Command and aliases

The docs describe the command as List containers, with usage docker container ls [OPTIONS].

An alias is a short or memorable alternative for a longer command. The aliases are docker container list, docker container ps, and docker ps.

Useful options

The -a or --all option will show all containers. The default shows just running containers.

-f or --filter filters output based on conditions provided.

--format formats output using a custom template, including table, json, or a Go template.

-q or --quiet displays only container IDs. -s or --size displays total file sizes. --no-trunc avoids truncating output.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker container ls; docker/cli, docker ps reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker container ls; docker/cli, docker ps reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:z7yz1c5a

iinventedlight. 2026. "docker ps: list containers." iinventedlight Library, iil:note:z7yz1c5a, version of 2026-11-23. https://iinventedlight.com/library/notes/docker-ps/. License: CC-BY-4.0.

@misc{iil_note_z7yz1c5a,
  author = {{iinventedlight}},
  title = {{docker ps: list containers}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-23},
  url = {https://iinventedlight.com/library/notes/docker-ps/},
  note = {Permanent ID iil:note:z7yz1c5a. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-ps.md.