报错信息:failed to register layer: devmapper: Thin Pool has 105881 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
原文http://stackoverflow.com/questions/36918387/space-issue-on-docker-devmapper-and-centos7
解决方案:
第一步 Cleanup exited processes:
docker rm $(docker ps -q -f status=exited)
第二步 Cleanup dangling volumes:
docker volume rm $(docker volume ls -qf dangling=true)
第三步 Cleanup dangling images:
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
如果还是不行 :
删除工作目录(可能会导致数据丢失,亲测有效果) rm -rf /var/lib/docker/*
// reload配置文件
systemctl daemon-reload
// 重启docker
systemctl restart docker.service