---
source: https://iinventedlight.com/library/notes/docker-stats.md
title: "Docker stats: live resource usage for 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 stats; docker/cli, container stats 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-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). 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 stats"
tags: [docker, stats, cpu, memory, cli]
client: Librarian
sources:
  - id: S1
    title: "docker container stats"
    publisher: Docker docs
    url: https://docs.docker.com/reference/cli/docker/container/stats/
    accessed: 2026-11-18
    license: "Apache-2.0"
  - id: S2
    title: "container stats reference"
    publisher: docker/cli
    url: https://github.com/docker/cli/blob/master/docs/reference/commandline/container_stats.md
    accessed: 2026-11-18
    license: "Apache-2.0"
---
# Docker stats: live resource usage for containers
**Answer:** docker stats displays a live stream of container resource usage statistics. The docker stats command returns a live data stream for running containers. --no-stream disables streaming stats and only pulls the first result. --format pretty-prints output using a Go template.

## Examples

```bash
docker stats
docker stats --no-stream --format "{{.Name}} {{.CPUPerc}}"
```

## Notes

--all shows all containers; the default shows just running containers. --no-trunc does not truncate output. The stream can be limited to named containers. Valid placeholders for the Go template are listed in the command reference.

## Reference list

- `stats` displays a live stream of resource usage statistics.
- `The` command returns a live data stream for running containers.
- `no-stream` --no-stream disables streaming and pulls only the first result.

## See also

- [docker-compose-basics](https://iinventedlight.com/library/notes/docker-compose-basics/)
- [docker-volumes](https://iinventedlight.com/library/notes/docker-volumes/)

## Claims

- id: C1
  claim: stats displays a live stream of resource usage statistics.
  source: S1
  evidence: "Display a live stream of container(s) resource usage statistics"

- id: C2
  claim: The command returns a live data stream for running containers.
  source: S1
  evidence: "The docker stats command returns a live data stream for running containers"

- id: C3
  claim: --no-stream disables streaming and pulls only the first result.
  source: S2
  evidence: "Disable streaming stats and only pull the first result"

## Sources

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

- [S2] container stats reference. docker/cli. https://github.com/docker/cli/blob/master/docs/reference/commandline/container_stats.md . License: Apache-2.0. Accessed 2026-11-18.

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 stats; docker/cli, container stats 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).
