space issue on docker devmapper and CentOS7

后端 未结 2 562
暗喜
暗喜 2020-12-12 11:05

I am learning docker and I am using v1.11.0 I am trying to install hadoop but devmapper is complaining about free disk space?

devmapper: Thin Pool has 82984          


        
2条回答
  •  臣服心动
    2020-12-12 11:32

    You can use:

    docker system prune -a -f --volumes
    

    where:

    • -a == removes all unused images
    • -f == force
    • --volumes == prune volumes.

    see: https://docs.docker.com/engine/reference/commandline/system_prune/#description

    as a side note, I had a lot of issues when I used devicemapper driver on my environment. I used to clean as I mentioned, but there were still other devicemapper issues. I strongly recommend moving to overlay2, it solved almost everything completely.

提交回复
热议问题