---
source: https://iinventedlight.com/library/notes/docker-images.md
title: "docker image ls: list local images"
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 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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). 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-images"
tags: [docker, images, cli, ls]
client: Librarian
sources:
  - id: S1
    title: "docker image ls"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/image/ls/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "image ls command reference (source)"
    publisher: Docker CLI
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_ls.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# 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

- [docker-tag](https://iinventedlight.com/library/notes/docker-tag/)
- [docker-pull](https://iinventedlight.com/library/notes/docker-pull/)
- [docker-save](https://iinventedlight.com/library/notes/docker-save/)

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

---

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