docker/images

List Images

List all locally available Docker images.

images
listing
repository

Command

docker images

Explanation

docker images lists locally cached images. It includes repositories, tags, and IDs for image management. Use filters like --filter dangling=true to target untagged images for cleanup or inspection.

Common Use Cases

  • Check available images before running containers
  • Identify old or unused images
  • Audit disk space usage by images

Best Practices

  • Regularly prune unused images to save disk space
  • Use filters to target specific image groups

Common Mistakes to Avoid

  • Assuming docker images lists remote images — it only shows local ones

Troubleshooting

Problem: Expected image missing from list

Solution: Check if image exists in remote registry or was removed with docker image prune.

Examples

List all images

docker images

List only dangling images

docker images --filter dangling=true