Common causes
- Accumulated unused Docker images from previous builds and pulls
- Stopped containers and their writable layers still taking up space
- Volumes from deleted containers that were never cleaned up
- Build cache from repeated builds that wasn't pruned
How to fix it
- Run the nuclear option to free everything unused: docker system prune -a --volumes (removes all unused images, containers, networks, and volumes)
- More surgical approach: docker image prune -a (images only), docker container prune (stopped containers), docker volume prune (unused volumes)
- Check what's using space: docker system df
- On Docker Desktop, increase the disk image size in Settings → Resources → Advanced → Disk image size
Example
$ docker build .
Step 5/12 : RUN npm install
Error response from daemon: no space left on deviceBuild fails midway because Docker's storage layer ran out of disk space
Browse more errors
The Developer Hub covers 150+ errors across Git, npm, Node.js, Python, TypeScript, and Docker — with plain-English explanations and fix steps.
