Docker download the mirror to add up to less than 3G, but the storage of documents used more than 10 G is Editor's Note ah?
I downloaded a lot of images are id the same, I try to add a bit, different id of the sum of more than 3G, but / var / lib / docker directory size is 13G, also started the two containers only, which inside There are some junk files, is not my time to make some of the cache image, how to delete these?
One Solution collect form web for “Docker download the mirror to add up to less than 3G, but the storage of documents used more than 10 G is Editor's Note ah?”
If your host is CentOS, and the use of the default
loop file, that no way, CentOS no Union FS implementation, this sparse file to simulate is going to grow. Ubuntu / Debian will not have this problem.
As for the removal of the mirror is not used to build the middle of the mirror problem. You can first
docker images -a look at is not too much
<none> mirror, and some of them are such images. Delete them directly
docker rmi $(docker images -aq -f "dangling=true") . And then look should be much less.
In addition, the contents of your container is also in the storage layer. Can
docker ps -a look at is not a lot of the previous container is not deleted, the same can also
docker rm $(docker ps -aq -f "dangling=true") to delete.