如何清理docker主机 [英] how do I clean up my docker host machine
本文介绍了如何清理docker主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我创建/调试docker image / container docker似乎在系统上留下各种各样的工件。 (有一点有一个48图像限制)但是最后一次我看到有20-25张图像;
As I create/debug a docker image/container docker seems to be leaving all sorts of artifacts on my system. (at one point there was a 48 image limit) But the last time I looked there were 20-25 images; docker images
.
所以最重要的问题是:
- 如何正确清理?
- ,因为我手动删除更多的图像开始到达。
- 我应该真正分配给主机的磁盘空间多少?
- 将在下次重新启动后运行守护进程真的重新启动?
- how does one properly cleanup?
- as I was manually deleting images more started to arrive. huh?
- how much disk space should I really allocate to the host?
- will running daemons really restart after the next reboot?
和元问题...我没有问过什么问题需要?
and the meta question... what questions have I not asked that need to be?
推荐答案
删除悬挂图片也很有用
docker rmi $(docker images -fdangling = true-q)
这篇关于如何清理docker主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文