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)
原文:http://blog.51cto.com/niming2008/2176126