问题说明

今天公司的build机器上使用 docker run 命令来启动容器的时候,突然出现下面的错

/usr/bin/docker-current: Error response from daemon: devmapper: Thin Pool has 155398 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.

解决办法

哎,老老实实运行下面命令吧

sudo docker rm $(sudo docker ps -q -f status=exited)
sudo docker volume rm $(sudo docker volume ls -qf dangling=true)
sudo docker rmi $(sudo docker images --filter "dangling=true" -q --no-trunc)
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐