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?

  • Docker storage backend using GlusterFS do this work? The underlying system is CoreOS
  • Seeking Docker official website document access too slow solution
  • Docker Basic Tutorial for Mirror Storage
  • Use the Docker Three Musketeers to deploy LNMP issues on Ali Cloud ECS
  • The source pointed out that Microsoft intends to $ 4 billion acquisition of Docker
  • Vagrant network problem
  • Micro-mirror challenge, micro to the extreme
  • CentOS 7 Docker failed to start
  • 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.

    Heads up! This alert needs your attention, but it's not super important.