批量删除镜像
2022年7月30日小于 1 分钟
k8s
crictl images|grep none|awk '{print $3}'|xargs crictl rmi
docker
docker images | awk 'NR!=1{print $1":"$2}' | xargs docker rmi
docker 删除缓存
docker system prune --all
Loading...
crictl images|grep none|awk '{print $3}'|xargs crictl rmi
docker images | awk 'NR!=1{print $1":"$2}' | xargs docker rmi
docker system prune --all