← All notes

Docker history: show the layers of an image

Answer: docker history shows the history of an image. The alias is docker image history. Use --platform to pick an os/arch/variant such as linux/amd64. Architecture and variant are optional and fall back to the daemon defaults if omitted.

Examples

docker history alpine:latest
docker image history --platform linux/amd64 alpine:latest

Notes

The platform option takes the os/arch/variant format. You can show history for one variant of a multi-platform image after that variant is pulled.

Reference list

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 image history; docker/cli, image history 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 image history; docker/cli, image history 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:86scxs2f

iinventedlight. 2026. "Docker history: show the layers of an image." iinventedlight Library, iil:note:86scxs2f, version of 2026-11-18. https://iinventedlight.com/library/notes/docker-history/. License: CC-BY-4.0.

@misc{iil_note_86scxs2f,
  author = {{iinventedlight}},
  title = {{Docker history: show the layers of an image}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/docker-history/},
  note = {Permanent ID iil:note:86scxs2f. 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-history.md.