删除docker images中为none的镜像

1
2
3
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker stop
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker rm
docker images|grep none|awk '{print $3 }'|xargs docker rmi
-------------End of the articleThank you for reading-------------
  • Author of this article:zfish
  • Link to this article: archives/6e8fa964.html
  • Copyright Notice: All articles in this blog, except for special statements, please indicate the source!
0%