KOSH

How to

Reclaim Docker space safely

Docker Desktop keeps every image, container and volume inside one large virtual-disk file. KOSH shows it under Use the owner's own tool and never deletes it as a file: that would destroy every container at once.

Use Docker itself, in Terminal:

  1. docker system df: see what uses the space (images, containers, volumes, build cache).
  2. docker system prune: removes stopped containers, unused networks, dangling images and build cache. Safe for most people.
  3. docker system prune -a: also removes all images not used by a container. They'll download again when needed.
  4. Volumes hold data (databases!). Only use docker volume prune if you're sure no volume holds anything you need.

Note: the virtual disk may not shrink on screen straight away. Docker Desktop's Troubleshoot and Settings → Resources pages manage its size.