docker clean:

docker ps -qa --no-trunc --filter "status=exited"| xargs docker rm
docker images --filter "dangling=true" -q --no-trunc | xargs docker rmi
docker images | grep "none" | awk '/ / { print $3 }' | xargs docker rmi
docker volume ls -qf dangling=true | xargs  docker volume rm
docker system prune --volumes -f

Réactions