Docker Desktop on a Mac: Docker.raw says 228 GB, docker system df says 2.5 GB, and 4.2 GB is real
Docker Desktop on a Mac stores everything in one file called Docker.raw. Finder says it is 228 GB. docker system df says you use 2.5 GB. Your free space says somewhere in between. All three are correct, and we measured how they fit together on a Mac that is running containers right now.
Three numbers for the same thing
| What reported it | Number | What it means |
|---|---|---|
ls -l on Docker.raw | 245,106,737,152 bytes (228 GiB) | the file's limit, not what it uses (it is a sparse file) |
du -sk on Docker.raw | 4,443,612 KB (4.24 GiB) | blocks actually allocated on your SSD |
docker system df (images + containers + volumes + build cache) | 1.262 GB + 1.05 MB + 0 + 1.276 GB = about 2.54 GB | what Docker itself tracks |
The gap: Docker.raw holds about 1.9 GiB more than Docker's own report. That is the Linux virtual machine's system files, filesystem overhead, and space that was used and freed inside the VM. We did not break it down further, so we only claim the size of the gap. And the only number that matters for your free space is the middle one: 4.24 GiB, not 228 GiB.
What docker system df showed
| Type | Total | Active | Size | Reclaimable |
|---|---|---|---|---|
| Images | 3 | 1 | 1.262 GB | 774.6 MB (61%) |
| Containers | 1 | 1 | 1.053 MB | 0 B |
| Local volumes | 0 | 0 | 0 B | 0 B |
| Build cache | 28 | 0 | 1.276 GB | 13.88 MB |
docker system df -v lists each item. The three images were 504 MB, 550 MB and 348 MB; the two 24.04 test images shared 139.4 MB of layers, so removing one frees less than its listed size. Only one of the three has a running container, which is why 774.6 MB (the two unused ones) shows as reclaimable. The build cache is 1.276 GB but only 13.88 MB is reclaimable, because the other entries are still referenced by images we have: the cache looks big but is mostly shared.
Which prune removes what
We did not run any of these here, because the images belong to other work on this Mac. This table is from Docker's documentation, with the reclaimable figures above to show what each would touch on this Mac:
| Command | Removes (per Docker docs) | On this Mac |
|---|---|---|
docker builder prune | unused build cache | about 13.88 MB |
docker image prune | dangling (untagged) images | depends on tags; none obviously dangling |
docker image prune -a | every image no container uses | up to 774.6 MB |
docker system prune | stopped containers, unused networks, dangling images and build cache | small |
docker system prune -a --volumes | also unused images and unused volumes | up to ~790 MB; volumes can hold database data |
Run docker system df first, then the smallest prune that covers what you want, and read the confirmation list. --volumes is the dangerous flag: a stopped database's data lives in a volume, and 'unused' just means no running container uses it right now.
Getting the disk back, and what not to do
- Deleting images does not shrink the file's limit, but it does free blocks inside it. Docker Desktop's file is sparse, so check
du -skon it, not Finder's size. - The limit is set in Docker Desktop > Settings > Resources > Advanced (Disk image size). Lower it only when your real usage is far below.
- Troubleshoot > Clean / Purge data deletes all images, containers and volumes. Never use it as a way to save a few GB.
- Do not copy, move or delete Docker.raw yourself while Docker is running. Quit Docker Desktop first.
For the Windows side of the same problem, see Docker and WSL: vmmem and ext4.vhdx. For Go builds inside containers, the Go cache article shows what to cache.
Zofle shows your Mac storage by category and lets you move big, old files to the Trash with Undo, so you can see what is worth the effort before you run any command.
Download Zofle for MacSources and method
- Docker documentation: docker system df, docker system prune, docker builder prune, docker image prune.
- Docker Desktop for Mac: settings, resources and disk image size.
- Measured on 15 November 2026 on an Apple silicon Mac with Docker Desktop (Docker 29.8.2), read-only commands only; no prune was run. Numbers will differ on your Mac, especially the unexplained 1.9 GiB.
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.