Clean Docker Cache On Mac Safely
Docker can recover a lot of space, but the risky part is volumes. Treat cache, images, containers, and volumes as different cleanup decisions.
Start With Docker's Own Report
docker system df
docker builder du
Look for the reclaimable column. It is more useful than total size because it separates active data from likely-unused data.
Usually Safer
- Build cache from old builds.
- Unused images that can be pulled or rebuilt again.
- Stopped containers you no longer need.
Review First
- Local volumes, especially databases, queues, object stores, and test fixtures.
- `Docker.raw`, which is Docker Desktop's disk image, not a simple cache file.
- Project-specific containers used by active work.
Safer Cleanup Order
- Run `docker system df` and save the output.
- Clean build cache first if it is clearly reclaimable.
- Remove unused images after checking active projects.
- Review volumes manually before pruning them.
Need help avoiding Docker volume mistakes?
Paste your read-only scan into SafeDisk and get a risk-ranked cleanup order for Docker, Xcode, caches, and large files.
Get free Docker diagnosis