cleanup

Tag: cleanup

Docker 다이어트

Prune $ docker image prune $ docker container prune $ docker volume prune $ docker network prune Workaround Image $ docker rmi $(docker images --filter "dangling=true" -q --no-trunc) $ docker rmi $(docker images | grep "none" | awk '/ / { print $3 }') Container $ docker rm $(docker ps -qa --no-trunc --filter "status=exited") Volume $ docker volume rm $(docker volume ls -qf dangling=true) $ docker volume ls -qf dangling=true ...