Docker 清理

docker rmi  $(docker images | grep aliyuncs.com/qingqiuyue/ | awk '{print $3}')

docker rmi --force $(docker images | grep wutong-web | awk '{print $3}')
kubectl get rs -n prod  | awk '{print $1,$2}' |grep 0 |awk '{print $1}' |xargs kubectl delete rs -n prod
// docker同时删除停止的容器
docker rm $(docker container ls -f "status=exited" -q)

批量删除tag为""镜像可以采用如下方法

docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

docker images | grep none | awk '{print $3}' | xargs docker rmi