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
historyshows the history of an image.Omittedarchitecture and variant fall back to daemon defaults.Theplatform option uses the os/arch/variant format.
See also
Claims
- id: C1 claim: history shows the history of an image. source: S1 evidence: "Show the history of an image"
- id: C2 claim: Omitted architecture and variant fall back to daemon defaults. source: S1 evidence: "if omitted falls back to the daemon's defaults"
- id: C3 claim: The platform option uses the os/arch/variant format. source: S2 evidence: "The platform option takes the
os[/arch[/variant]]format"
Sources
- [S1] docker image history. Docker docs. https://docs.docker.com/reference/cli/docker/image/history/ . License: Apache-2.0. Accessed 2026-11-18.
- [S2] image history reference. docker/cli. https://github.com/docker/cli/blob/master/docs/reference/commandline/image_history.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 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
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.},
}
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.
- docker-history.table.json (table; CC-BY-4.0)
- docker-history.schema.json (schema; CC-BY-4.0)
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.