docker images
List images on the local system. Shows repository, tag, image ID, size, and creation time.
Syntax
docker images [OPTIONS] [REPOSITORY[:TAG]]
Examples
Example 1
docker images
List all local images.
Example 2
docker images nginx
List only nginx images.
Example 3
docker images -q
Show only image IDs (useful for scripting).
Common flags
| Flag | Description |
|---|---|
| -a, --all | Show all images including intermediate |
| -q, --quiet | Show only image IDs |
| --no-trunc | Do not truncate output |
Tips & best practices
- •Use docker image prune to remove unused images.
- •Dangling images (none tag) can be removed with docker image prune.