删除镜像

docker rmi $(docker images | grep -E 'harbor.xxx.com/(qa|dev|prod)/' | awk -v OFS=":" '{print $1,$2}')

删除k8s中Evicted状态的pod

kubectl get po -A | grep 'Evicted' | awk 'NR>0 {print "kubectl delete po -n " $1,$2}' | bash

查看docker space

# overlay2无thin pool,devicemapper有thin pool。
docker info | grep Space

查看镜像和容器的空间

docker system df -v 或 docker system df -v | grep GB

标签: none

添加新评论