Docker taking up space on your Mac: how to reclaim it
Docker Desktop stores every image, container and volume in one virtual disk file, Docker.raw, under ~/Library/Containers/com.docker.docker. It grows as you pull and build, and it counts as System Data. Run docker system df to see what is reclaimable, then docker system prune to remove the unused parts.
Why it gets big
Docker on a Mac runs inside a virtual machine, so everything it stores lives in a single disk image at ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw (or .qcow2). Each image pull, build layer and stopped container adds to it, and the file can stay large even after you stop using the images. In Finder it looks like one huge file, which is why the space seems to vanish into System Data.
How to clear it by hand
See where the space goes:
docker system dfThen remove what is unused:
docker system prune- Safe:
docker system pruneremoves stopped containers, dangling images, unused networks and build cache. Images get pulled again when needed. - Wider:
docker system prune -aalso removes every image not used by a container. Expect re-downloads. - Careful:
docker volume pruneand--volumesdelete volumes, which often hold database data. That data does not come back.
If the disk image stays big after pruning, Docker Desktop settings have options to resize or reset it. A reset removes all images, containers and volumes.
How Berth handles it
Berth finds the Docker virtual disk and asks Docker itself, with docker system df, how much of it is reclaimable, so the number it shows is Docker’s own. Cleanup runs docker system prune -f.
- Re-downloadable: unused images and build cache come back with a pull or a build.
- Yours, kept: volumes and running containers are never removed.
Berth also counts the disk image toward System Data, so you can see it in the Briefing.
Whatever Berth finds goes into a review tray first. A dry run shows exactly what would move, pre-flight checks make sure the owning app is closed, and everything goes to the macOS Trash, so Undo puts it back. Berth is free to scan and explore; one-click cleanup is part of Berth Pro, $24 one-time for 2 Macs. There is no account and nothing is uploaded.
Questions
Is docker system prune safe?
It removes stopped containers, dangling images, unused networks and build cache. It leaves volumes and running containers alone unless you add flags. Check docker system df first.
Why is Docker.raw so big?
It holds all your images, containers, volumes and build cache. It grows as you use Docker and does not always shrink by itself.
Will I lose my databases?
Not from a plain prune. Volumes hold database data, and they are only deleted if you prune volumes or reset Docker Desktop. Berth never removes them.
Does Docker count as System Data?
Yes, the disk image sits in your Library, so macOS counts it there. Berth names it as the Docker virtual disk.
