Usage
Arguments
Filter images by repository name and optionally tag. Supports wildcards in the tag.
Flags
Filter images by machine name or ID. Can be specified multiple times or as a comma-separated list. Default is to include all machines.
Output
The command displays a table with:- IMAGE ID - First 12 characters of the image ID
- NAME - Image repository and tag
- PLATFORMS - Supported platforms (for example,
linux/amd64,linux/arm64) - CREATED - How long ago the image was created
- SIZE - Image size
- IN USE - Whether the image is used by containers (● = in use, ○ = not in use, - = unknown)
- STORE - Image store (
dockerorcontainerd) - MACHINE - Which machine has this image
Examples
List all images
List images on a specific machine
List images on multiple machines
Filter by image name
Filter by image name and tag
Filter with wildcards
myapp:1.0, myapp:1.1, etc.
Understanding the Output
Image ID
The first 12 characters of the image’s SHA256 digest. Same ID means the same image content.Platforms
Shows which CPU architectures the image supports. Multi-platform images show multiple platforms.In Use Indicator
- ● (filled circle) - Image is used by one or more containers
- ○ (empty circle) - Image is not used by any containers (can be cleaned up)
- - - In-use information not available (requires Docker API 1.51+)
Image Store
Most images are in thedocker store. Some may be in containerd if you’re using containerd directly.
Finding Unused Images
To find images that can be safely removed:Multi-Platform Images
Some images support multiple platforms:Image Distribution
The same image on multiple machines has the same ID:Use Cases
Check Image Availability
Before deploying, verify images are on the right machines:Find Large Images
Identify images taking up disk space:Verify Image Push
After pushing an image, confirm it arrived:Clean Up Unused Images
Find images not in use:docker image prune on each machine.
Related Commands
uc build- Build images from Compose fileuc ps- See which images are runninguc service ls- List services
