docker images Explained

What docker images does, with an example.

Published November 8, 2026

docker images lists the images stored locally with repository, tag, ID, creation time and size.

How it works

Use it to check what you have built or pulled, and to find large or dangling images.

docker image ls is the equivalent newer syntax.

Try it

docker images
REPOSITORY TAG IMAGE ID SIZE
nginx 1.25 a1b2c3 187MB
myapp 1.0 d4e5f6 312MB

Practical examples

List

docker images

Filter by name

docker images nginx

Dangling

docker images -f dangling=true

Show digests

docker images --digests

Common mistakes

  • Ignoring large images.
  • Leaving dangling images to accumulate.
  • Using :latest tags loosely.

Key takeaways

  • docker images lists the images stored locally with repository, tag, ID, creation time and size.
  • Run docker <command> --help for all options.
  • Clean up unused resources regularly.

FAQ

How do I shrink images?

Use slim/alpine bases and multi-stage builds.

Where can I see all options?

Run the command with --help.

More General articles