docker Thin Pool问题处理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker Thin Pool问题处理相关的知识,希望对你有一定的参考价值。

pro-star-node224-25 dockerd: time="2018-07-02T10:46:37.822250462+08:00" level=info msg="Attempting next endpoint for pull after error: failed to register layer: devmapper: Thin Pool has 130366 free data blocks which is less than minimum required 163840 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior"
1、docker commit 报错

Error response from daemon: devmapper: Error mounting ‘/dev/mapper/docker-253:2-153616524-20c7cc2b1c8a86c16575fe0fbfeeaa9da38c7742f95100492e9f11907707415b-init‘ on ‘/var/lib/docker/devicemapper/mnt/20c7cc2b1c8a86c16575fe0fbfeeaa9da38c7742f95100492e9f11907707415b-init‘. fstype=xfs options=nouuid: no space left on device<4>[ 1145.041338] XFS (dm-13): failed to locate log tail<4>[ 1145.041340] XFS (dm-13): log mount/recovery failed: error -28
<4>[ 1145.041385] XFS (dm-13): log mount failed

2、docker run 报错
/usr/bin/docker-current: Error response from daemon: devmapper: Thin Pool has 0 free data blocks which is less than minimum required 163840 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior.
See ‘/usr/bin/docker-current run --help‘.
3、解决方法
运行下面三个命令:
// 注意,以下三个命令执行时可能出错是正常的。
清理exited进程:
docker rm $(docker ps -q -f status=exited)
清理dangling volumes:
docker volume rm $(docker volume ls -qf dangling=true)
注意:本人运行完以上两个命令问题已经解决,下面的命令未验证
清理dangling image:
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

以上是关于docker Thin Pool问题处理的主要内容,如果未能解决你的问题,请参考以下文章

linux内核dm thin pool分析

graph driver-device mapper-03thin pool基本操作

devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free dat

devmapper: Thin Pool has 154464 free data blocks which is less than minimum required 163840 free dat

python多处理pool.map挂起

多处理模块中的 ThreadPool 与 Pool 有啥区别?