---
source: https://iinventedlight.com/library/notes/docker-ps.md
title: "docker ps: list containers"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (docker/cli); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-ps"
tags: [docker, containers, cli, devops]
client: Librarian
sources:
  - id: S1
    title: "docker container ls"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/container/ls/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "docker ps reference"
    publisher: docker/cli
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/ps.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# 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

- [docker-run](https://iinventedlight.com/library/notes/docker-run/)
- [docker-exec](https://iinventedlight.com/library/notes/docker-exec/)
- [docker-volume](https://iinventedlight.com/library/notes/docker-volume/)

## Claims

- id: C1
  claim: docker container ls lists containers.
  source: S1
  evidence: "List containers"

- id: C2
  claim: docker ps is an alias of docker container ls.
  source: S1
  evidence: "docker ps"

- id: C3
  claim: --all shows all containers; the default is only running ones.
  source: S1
  evidence: "Show all containers (default shows just running)"

- id: C4
  claim: docker container ls, list, ps, and docker ps are aliases.
  source: S2
  evidence: "docker container ls`, `docker container list`, `docker container ps`, `docker ps"

## Sources

- [S1] docker container ls. Docker Docs. https://docs.docker.com/reference/cli/docker/container/ls/ . License: Apache-2.0. Accessed 2026-11-23.

- [S2] docker ps reference. docker/cli. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/ps.md . License: Apache-2.0. Accessed 2026-11-23.

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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
