Why does Docker Desktop take up so much disk space on Mac?
Docker Desktop on macOS runs containers inside a lightweight Linux virtual machine, backed by a single large virtual disk file. Every image you pull, every container you build, every unused volume, and the build cache all live inside that one file - and by default, it only grows, it doesn't automatically shrink when you remove things.
Where does Docker's disk image live?
Docker Desktop stores its VM disk under ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw (or a .qcow2 file on older versions). It's common to see this single file reach 30-80GB on a machine used for regular container work.
How do I check what's using Docker's disk space?
Run this in Terminal to see a breakdown by category:
docker system df -vThis shows exactly how much space is used by images, containers, volumes, and build cache - and which specific images or volumes are the biggest.
How to reclaim Docker disk space
The safest broad cleanup removes only unused resources - stopped containers, dangling images, and unused networks - without touching anything currently in use:
docker system pruneFor a more aggressive cleanup that also removes unused images (not just dangling ones) and unused volumes, which is where most of the space usually is:
docker system prune -a --volumesWarning: the --volumes flag deletes unused named volumes, which can include database data for containers you're not currently running. Skip that flag if you have containers you start infrequently but want to keep their data.
Why doesn't disk usage drop after pruning?
Docker's virtual disk file doesn't automatically shrink back down after you free space inside the VM - the file was allocated at its peak size and stays there. To actually reclaim space on your Mac's drive, you may need to reset Docker's disk image entirely (Docker Desktop > Settings > Troubleshoot > Clean / Purge data), which removes everything and starts fresh.
How do I limit how big Docker's disk can grow?
In Docker Desktop, go to Settings > Resources > Advanced and lower the "Disk usage limit." This caps how large the virtual disk file can become, forcing you to clean up more proactively rather than letting it grow unchecked.
Finding the Docker.raw file directly
If you just need to confirm how much space Docker itself is using right now without digging through settings, DustByte's Large & Old Files tool will surface the Docker.raw file directly when scanning your Library folder, alongside any other oversized files competing for your storage.