docker image ls: list local images
Answer: The default docker images will show top level images, their repository and tags, and their size. Intermediate layers stay hidden in the default listing. Untagged dangling images are also hidden by default.
What the default list shows
With no extra flags, docker images lists top level images along with each repository, tags, and size.
Images are built from intermediate layers, which improve reusability, reduce disk usage, and speed up docker build because each step can be cached.
Those intermediate layers stay hidden in the default listing.
Untagged dangling images are hidden in that default listing as well.
Use the -a (--all) flag to show intermediate layers and dangling images.
How size is counted
SIZE is cumulative: it is the space taken up by the image together with all its parent images.
An image is listed more than once if it has multiple repository names or tags. This single image uses up the SIZE listed only once.
The CLI markdown reference
These intermediate layers are not shown by default.
Use the -a (--all) flag to show intermediate layers and dangling images.
See also
Claims
- id: C1 claim: The default listing shows top-level images, repository, tags, and size. source: S1 evidence: "show all top level images, their repository and tags, and their size"
- id: C2 claim: Intermediate layers are hidden by default. source: S1 evidence: "These intermediate layers are not shown by default"
- id: C3 claim: Dangling images are hidden until you pass --all. source: S1 evidence: "Untagged (dangling) images are also hidden by default"
- id: C4 claim: SIZE includes an image and all of its parent images. source: S1 evidence: "the cumulative space taken up by the image and all its parent images"
- id: C5 claim: The CLI source also hides intermediate layers by default. source: S2 evidence: "These intermediate layers are not shown by default"
- id: C6 claim: The CLI source also documents --all for dangling images. source: S2 evidence: "Untagged (dangling) images are also hidden by default"
Sources
- [S1] docker image ls. Docker Docs. https://docs.docker.com/reference/cli/docker/image/ls/ . License: Apache-2.0. Accessed 2026-11-23.
- [S2] image ls command reference (source). Docker CLI. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_ls.md . License: Apache-2.0. Accessed 2026-11-23.
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 ls; Docker CLI, image ls command reference (source). 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 ls; Docker CLI, image ls command reference (source). 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 image ls: list local images." iinventedlight Library, iil:note:jsaer3de, version of 2026-11-23. https://iinventedlight.com/library/notes/docker-images/. License: CC-BY-4.0.
@misc{iil_note_jsaer3de,
author = {{iinventedlight}},
title = {{docker image ls: list local images}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/docker-images/},
note = {Permanent ID iil:note:jsaer3de. 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-images.schema.json (schema; CC-BY-4.0)
- docker-images.table.json (table; 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-images.md.