No space left on docker
As you know, I've been playing with docker quite a lot lately.
Some weeks ago, I couldn't start a container because of "No space left on device"
I did a system prune that (temporarily) solved the issue:
docker system prune
But the problem is coming back and now I discover several things. First, all volumes are stored in a single file. In MacOs is here:
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux
Second, the maximum file size (by default) is 64GB and... and yes, I've reached the limit.
It's possible to increase the size (without losing data), but I'll go for the radical solution: remove the file.
The consequence is that all data will be lost. Included images, containers and... volumes! But it's not a problem for me, it's all generated data.
So here I go:
rm ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
And then restart docker
🖖