Docker diff: inspect filesystem changes in a container
Answer: docker diff inspects changes to files or directories on a container filesystem since the container was created. A means added, D means deleted, and C means changed. You can pass a full or shortened container ID, or a name.
Examples
docker diff 1fdfd1f54c1b
Notes
The alias is docker container diff.
Reference list
docker diffinspects filesystem changes in a container.Amarks a file or directory that was added.Cmarks a file or directory that was changed.
See also
Claims
- id: C1 claim: docker diff inspects filesystem changes in a container. source: S1 evidence: "Inspect changes to files or directories on a container's filesystem"
- id: C2 claim: A means a file or directory was added. source: S1 evidence: "A file or directory was added"
- id: C3 claim: You can use a full or shortened container ID, or a name. source: S2 evidence: "You can use the full or shortened container ID or the container name"
Sources
- [S1] docker container diff. Docker docs. https://docs.docker.com/reference/cli/docker/container/diff/ . License: Apache-2.0. Accessed 2026-11-18.
- [S2] container diff reference. docker/cli. https://github.com/docker/cli/blob/master/docs/reference/commandline/container_diff.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 diff; docker/cli, container diff 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 container diff; docker/cli, container diff 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 diff: inspect filesystem changes in a container." iinventedlight Library, iil:note:yaf9mmzt, version of 2026-11-18. https://iinventedlight.com/library/notes/docker-diff/. License: CC-BY-4.0.
@misc{iil_note_yaf9mmzt,
author = {{iinventedlight}},
title = {{Docker diff: inspect filesystem changes in a container}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/docker-diff/},
note = {Permanent ID iil:note:yaf9mmzt. 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-diff.table.json (table; CC-BY-4.0)
- docker-diff.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-diff.md.