Docker 报错: Create more free space in thin pool or use dm.min_free_space option to change behavior

具体报错信息

ERROR: for services_wenwo-cloud-sina-app_1_86717af888af  Cannot create container for service wenwo-cloud-sina-app: devmapper: Thin Pool has 162822 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
ERROR: for wenwo-cloud-sina-app  Cannot create container for service wenwo-cloud-sina-app: devmapper: Thin Pool has 162822 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
ERROR: Encountered errors while bringing up the project.

解决方法

清理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 system prune –volumes 或者 docker system prune -a -f –volumes