Docker.raw is huge on Mac: how to shrink it safely
Docker.raw is Docker Desktop's virtual disk, and it's often one of the biggest files on a developer's Mac. Deleting it in Finder wipes everything inside, so do it from Docker instead.
What Docker.raw is
Docker Desktop runs containers inside a small virtual machine. That machine's disk is one file, ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw, holding every image, container, volume and build cache.
Check its real size first
Docker.raw is a sparse file: Finder can show its maximum size (often 64 GB) even when far less is actually used. To see the real space it takes on your Mac, run:
du -h ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
To see what's using the space inside Docker, run docker system df.
Free space from inside Docker
| Command | What it removes | Risk |
|---|---|---|
docker builder prune | Build cache | Low. The next build is slower |
docker system prune | Stopped containers, unused networks, dangling images and build cache | Low |
docker system prune - | Also every image not used by a container | Medium. Images download again when needed |
docker volume prune | Volumes not used by a container | High. Volumes often hold database data. Check first |
According to Docker, space is freed when images are deleted, not when files are deleted inside running containers.
Cap how big it can get
In Docker Desktop, open Settings › Resources › Advanced and lower the disk image size. Docker won't let the virtual disk grow past it.
Why not just delete Docker.raw?
You can, but it removes every image, container and volume at once, including databases you may not have backed up. Docker creates a new, empty disk on its next start. Treat it like a reset, not a cleanup.
How Macaroom handles it
Macaroom shows the space Docker's disk actually uses on your Mac, marks it Manage in app, and points you to docker system prune instead of deleting the file. It never removes Docker's disk itself.
Related guides
- Is it safe to delete Xcode DerivedData?
- Where Ollama and LM Studio keep models, and how to delete them
See it on your own Mac
Macaroom scans your Mac, names what each chunk of storage is, and marks what's safe to clear. Anything you remove goes to the Trash, so you can put it back.
Get Macaroom