---
source: https://iinventedlight.com/library/notes/docker-history.md
title: "Docker history: show the layers of an image"
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 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."
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 history"
tags: [docker, history, images, layers, cli]
client: Librarian
sources:
  - id: S1
    title: "docker image history"
    publisher: Docker docs
    url: https://docs.docker.com/reference/cli/docker/image/history/
    accessed: 2026-11-18
    license: "Apache-2.0"
  - id: S2
    title: "image history reference"
    publisher: docker/cli
    url: https://github.com/docker/cli/blob/master/docs/reference/commandline/image_history.md
    accessed: 2026-11-18
    license: "Apache-2.0"
---
# 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

```bash
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

- `history` shows the history of an image.
- `Omitted` architecture and variant fall back to daemon defaults.
- `The` platform option uses the os/arch/variant format.

## See also

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

## 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.

---

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