Docker out of space

 •  Filed under docker

Check out this crazy pernicious and largely ignored Docker issue from 2014. All the time, I'm trying to docker build something on my big Ubuntu box and I get no space left on device.

And then I SSH into the machine, run df -h -i and see that yes, indeed, I have like 20 free inodes.

First attempt at solving is docker system prune [-a][-f]

Second is

sudo service docker stop && \
 sudo rm -r /var/lib/docker && \
 sudo services docker start

I'm using AUFS. People have the same issue with Overlay and Overlay2. Some report that BTRFS doesn't have this issue. I'll try that out and report back.