Docker build failure
Why does my Docker build fail with “no space left on device” even though the host has free disk space?
Caleb MillerBegginer
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Docker manages its own storage area, and that space can fill up even if the host filesystem still has room.
Old images, stopped containers, and unused build cache accumulate quietly over time, especially on CI machines. When Docker’s storage directory fills up, builds fail even though
df -hlooks fine at first glance.This catches people off guard because the error doesn’t point to Docker storage directly.
Takeaway: Docker disk usage needs its own cleanup and monitoring, separate from the host.