如何物理去除未标记的泊坞窗图像 [英] how to physically remove untagged docker images
本文介绍了如何物理去除未标记的泊坞窗图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以使用什么命令或过程来物理删除不需要的图像?
解决方案
您应该可以使用dangling = true$删除未标记的Docker映像c $ c> flag:
sudo docker rmi $(sudo docker images -fdangling = true-q)
来源:
https://docs.docker.com/engine/reference/commandline/images/
when I run a command such as sudo docker rmi me/myimage I get the responce ...image untagged, but, when I rerun sudo docker images I can see that this "untagged" image is still there, and, if I run df -h I can see that the actual files still exist and occupy the file system space. What command or procedure can I use to physically remove the unneeded images?
解决方案
You should be able to remove untagged Docker images using the "dangling=true"
flag:
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
source:
https://docs.docker.com/engine/reference/commandline/images/
这篇关于如何物理去除未标记的泊坞窗图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文