Why is docker image eating up my disk space that is not used by docker

前端 未结 9 2052
长发绾君心
长发绾君心 2020-12-12 11:07

I have setup docker and I have used completely different block device to store docker\'s system data:

[root@blink1 /]# cat /etc/sysconfig/docker
# /etc/sysc         


        
9条回答
  •  甜味超标
    2020-12-12 12:00

    Yes, Docker use /var/lib/docker folder to store the layers. There are ways to reclaim the space and move the storage to some other directory.

    You can mount a bigger disk space and move the content of /var/lib/docker to the new mount location and make sym link.

    There is detail explanation on how to do above task.

    http://www.scmtechblog.net/2016/06/clean-up-docker-images-from-local-to.html

    You can remove the intermediate layers too.

    https://github.com/vishalvsh1/docker-image-cleanup

提交回复
热议问题