Saturday, June 20, 2020

docker - no space left on device

When Docker runs out of space, the error messages can be misleading.

docker images | grep "<none>                              <none>" | tr -s " " | cut -d' ' -f3 | xargs docker rmi -f

docker image prune -f

docker rm $(docker ps -q -f 'status=exited')

docker rmi $(docker images -q -f "dangling=true")

docker system prune


https://domm.plix.at/perl/2020_06_docker_prune_volumes_by_label.html
https://news.ycombinator.com/item?id=23571953

No comments:

Post a Comment