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 <>[ ): failed to locate log tail <>[ ): log mount/recovery failed: error - <>[ ): log mount failed
2、docker run 报错
/usr/bin/docker-current: Error response free data blocks which 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)