Reference / Fix an error
Docker: "no space left on device" โ free disk fast
Reclaim 20+ GB safely ยท reversible
Docker images, layers, and volumes fill a Mac quietly. Clear the reclaimable bytes around (and including) Docker's data, then retry your build.
30-second triage
See how full you are and what's safe to clear:
$ df -h / # check the host disk
$ diskspace detect # find Docker + neighbouring bloat
$ docker system df # Docker's own viewWhat's usually eating it
Each links to a plain verdict โ does it come back if you delete it?
Is it safe to delete ~/Library/Containers/com.docker.docker/Data/vms on a Mac?~/Library/Containers/com.docker.docker/Data/vmsUsually safeIs it safe to delete ~/.npm/_cacache on a Mac?~/.npm/_cacacheSafe to deleteIs it safe to delete ~/Library/Caches/Homebrew on a Mac?~/Library/Caches/HomebrewSafe to delete
The one-command fix
diskspace frees exactly what you need, pressure-tests every candidate against live disk state, and stages it reversibly โ so an agent or a human can run it without fear.
$ brew install tymrtn/diskspace/diskspace
$ diskspace doctor --need 20G --yes # scan โ pressure-test โ free