删除前
![](https://img.haomeiwen.com/i12030582/d1af2e8a031cb22e.png)
调用命令
docker images | awk '/<none>/{print "docker rmi "$3}' | bash
删除repository为 none 的 image
![](https://img.haomeiwen.com/i12030582/f3172bb02a448e6c.png)
删除后
![](https://img.haomeiwen.com/i12030582/fd0bdf094e357f06.png)
docker images | awk '/<none>/{print "docker rmi "$3}' | bash
删除repository为 none 的 image
本文标题:Docker批量删除image
本文链接:https://www.haomeiwen.com/subject/ifrhyqtx.html
网友评论