·Updated ·8 min read

Docker.raw Is Huge on Mac: How to Shrink Docker's Disk

Docker Desktop stores images in a VM disk file. Prune first; delete Docker.raw only when you accept losing local images.

Docker.raw is a single VM disk — prune inside Docker before you delete the file.

On Mac, Docker Desktop does not store every image as loose files in Finder. It keeps a Linux VM disk — often named Docker.raw — that grows as you pull images and build.

Shrink from inside Docker first. Only delete the disk file when you are ready to lose local images and volumes.

Find Docker.raw

Search Spotlight for Docker.raw or look under Docker's group container / Application Support paths. Size in Finder is the reclaim you are chasing.

One file can outweigh your Documents folder.

Prune inside Docker Desktop

  1. Open Docker Desktop → Settings → Resources and note disk image size limits.
  2. Run cleanup: unused images, build cache, stopped containers.
  3. From Terminal: docker system prune -a (review flags — this removes unused images).
Reclaim unused data
docker system df
docker system prune -a --volumes

When to delete the disk or uninstall

If you no longer use Docker, uninstall Docker Desktop and remove leftovers — see How to uninstall Docker on Mac. That is the cleanest way to kill a multi-ten-GB Docker.raw.

FAQ

Is it safe to delete Docker.raw while Docker is installed?

Quit Docker first. Deleting the disk wipes local images/containers; Docker recreates an empty disk on next launch.

Why didn't prune shrink Finder size?

The VM disk file may not shrink automatically after prune. Restart Docker, use disk image settings, or reclaim by recreating the disk.

qcow2 vs raw?

Older Docker Desktop used .qcow2; newer builds often use .raw. Same idea: one VM disk file.