celia
4/23/2018 - 11:51 AM

Docker clear images and containers

docker image prune docker container prune

docker rmi $(docker images --quiet --filter "dangling=true")

docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi

forcing: docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi -f