← All notes

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

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

Permanent ID: iil:note:jsaer3de

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.},
}

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-images.md.