Fix Docker "no space left on device"
Reclaim disk used by dangling images, stopped containers, build cache and volumes.
Problem
Builds or `docker pull` fail with `no space left on device`, but `df -h /` looks fine.
Root cause
Docker stores images, containers, volumes and build cache under `/var/lib/docker`. Layers and BuildKit cache add up fast.
Solution
See what is using space
docker system df -vPrune safely
docker container prune -f
docker image prune -af
docker builder prune -afRemove unused volumes (DESTRUCTIVE — data is lost)
docker volume prune -fFrequently asked questions
Related fixes
Docker
4 minFix Docker "permission denied while trying to connect to the Docker daemon socket"
The classic Docker socket permission error and the safe way to fix it without chmod 777.
#permissions#socket#linux
Docker
3 minFix docker-compose "network ... not found"
Why Docker Compose can't find an external network and how to declare or create it.
#compose#networks
Weekly digest
One DevOps fix in your inbox each week
Short, practical, no fluff. Real errors, real fixes — straight from production postmortems.