您现在的位置是:热点 >>正文
云计算核心技术Docker教程:清理未使用的Docker网络
热点778人已围观
简介...
Docker采取了一种保守的方法来清理未使用的对象(通常称为“垃圾收集”),例如图像,容器,卷和网络:除非您明确要求Docker这样做,否则通常不会删除这云计些对象。这可能会导致Docker使用额外的磁盘空间。对于每种类型的对象,Docker提供一个prune命令。此外,您可以docker system prune用来算核一次清除多种类型的对象。
清理网络
Docker网络不会占用太多磁盘空间,但它们确实会创建iptables 规则,桥接网络设备和路由表条目。要清理这些东西,您可以dock心技er network prune用来清理任何容器都没有使用的网络。
$ docker network prune
WARNING! This will remove all net术Dworks not used by at least one container.
Are you sure you want to continue? [y/N] y
默认情况下,系统会oc提示您继续。要绕过提示,请使用-f或 --force标志。
默认情况下,将删除所有未使用的网络。您可以使用该--filter标志限制范围。例如,以下命令仅删除2ke4小时之前的网络:
$ docker network prune --filter "until=24h"
全部清理
该docker system prune命令是修剪图像,r教容器和网络的快捷方式。默认情况下,不修剪卷,并且必须指定--volumes用于docker system prune修剪卷的 标志。
$ docker system pru程:ne
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one conta清理iner
- all dangling images
- all build cache
Are you sure you want to continue? [y/N] y
要同时修剪卷,请添加--未使volumes标志:
$ docker system prune --volumes
WARNING! This will remove:
- all stopped container用的s
- all networks not used by at least one container
- all volumes not used by at least one container
- aDoll dangling images
- all build cache
Are you sure you want to continue? [y/N] y
默认情况下,系统会提示您继续。要ck绕过提示,请使用-f或 --force标志。
Tags:
相关文章
标签: DeepSeek ClaudeCode DeepSeekCodeHarness Anthropic
热点云梦级5月20日云梦级消息,「甲子光年」从接近DeepSeek的知情人士处获悉,DeepSeek内部正在组织一个新的Harness团队,方向是代码智能体产品,内部对标Anthropic旗下的Claud...
【热点】
阅读更多云安全日报220519:思科安全设备和威胁防御软件发现权限提升漏洞,需要尽快升级
热点Cisco ASA是思科其中的一套防火墙和网络安全平台,主要用于工业交换机,路由器等安全设备。Cisco FTD是思科其中的一个威胁防御安全软件,主要用于工业防火墙设备。 5月17日,思科公司发布了安...
【热点】
阅读更多苹果玩不起了 卖亏了就取消订单 苹果乌龙订单全部取消
热点就在刚刚苹果中国官网给购买了商品的用户发了一封非常简洁明了的邮件“取消订单”。 你的订单将被取消。 订单号: 隐藏 感谢你近日在 Apple Store 在线商店购物。我们在处理你的订单时意外发现其中...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.openspaceinstitute.org/search?q=谷歌霸屏服务【tg:seogoogle987】,0Wk
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌霸屏服务【tg:seogoogle987】,s4b
- https://www.nyif.com/catalogsearch/result/?q=谷歌霸屏服务【tg:seogoogle987】,R08
- https://www.flickr.com/photos/tags/谷歌霸屏服务【tg:seogoogle987】dk6
- https://www.therapeuticassociates.com/?cat=5&s=谷歌霸屏服务【tg:seogoogle987】,x0R
- https://www.military-history.org/?s=谷歌霸屏服务【tg:seogoogle987】,OKp
- https://www.unclefossil.com/search/谷歌霸屏服务【tg:seogoogle987】,HLu
- https://www.youthforum.org/search-results?cx=4f5236218ab5e8ef9&ie=UTF-8&q=谷歌霸屏服务【tg:seogoogle987】,67Y
- https://www.sdcard.org/ja/?s=谷歌霸屏服务【tg:seogoogle987】,wYg
- https://www.voices.com/talents/search?keywords=谷歌霸屏服务【tg:seogoogle987】,IR7
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=谷歌霸屏服务【tg:seogoogle987】,Can
- https://www.pinkpanda.ro/magazin/ingrijirea-tenului?page=87&q=谷歌霸屏服务【tg:seogoogle987】,hfP
- https://www.teamlab.art/es/?submit=谷歌霸屏服务【tg:seogoogle987】,aAI
- https://www.navymwr.org/search/?query=谷歌霸屏服务【tg:seogoogle987】,j30
- https://www.rotherham.gov.uk/site-search/results/?q=谷歌霸屏服务【tg:seogoogle987】,tiE
- https://www.kawainter.com/catalogsearch/result/?q=谷歌霸屏服务【tg:seogoogle987】,cCt
- https://www.pearlstonecenter.org/search/谷歌霸屏服务【tg:seogoogle987】,Qcf
- https://www.lindseymedicalsupply.com/search/谷歌霸屏服务【tg:seogoogle987】,LSZ
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌霸屏服务【tg:seogoogle987】,sCr
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌霸屏服务【tg:seogoogle987】,CsK
- https://www.klatreverden.no/search?q=谷歌霸屏服务【tg:seogoogle987】,X6i
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌霸屏服务【tg:seogoogle987】,67E
- https://www.pmindia.gov.in/en/?s=谷歌霸屏服务【tg:seogoogle987】,25p
- https://www.tcv.org.uk/search/谷歌霸屏服务【tg:seogoogle987】,0WC
- https://www.lenovo.com/gb/en/search?action=SEARCH&text=谷歌霸屏服务【tg:seogoogle987】,1wh
- https://www.teamlab.art/ko/?submit=谷歌霸屏服务【tg:seogoogle987】,kgZ
- https://www.kores.com/?s=谷歌霸屏服务【tg:seogoogle987】,KL8
- https://www.teamlab.art/it/?submit=谷歌霸屏服务【tg:seogoogle987】,ylI
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏服务【tg:seogoogle987】YE8
- https://www.lneg.pt/en/?s=谷歌霸屏服务【tg:seogoogle987】,3Br
- https://www.rea.govt.nz/search?searchterm=谷歌霸屏服务【tg:seogoogle987】,ITJ
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌霸屏服务【tg:seogoogle987】,Ui9
- https://www.msrenewal.com/search/谷歌霸屏服务【tg:seogoogle987】,A7h
- https://www.qylaws.com/search/谷歌霸屏服务【tg:seogoogle987】,LB4
- https://www.metaltix.com/?view=tours&filter=search&q=谷歌霸屏服务【tg:seogoogle987】,wan
- https://www.smarty.net/search?q=谷歌霸屏服务【tg:seogoogle987】,JKC
- https://www.uctronics.com/catalogsearch/result/?q=谷歌霸屏服务【tg:seogoogle987】,3Vn
- https://search.danawa.com/dsearch.php?query=谷歌霸屏服务【tg:seogoogle987】xnI
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏服务【tg:seogoogle987】EGM
- https://www.openstreetmap.org/search?query=谷歌霸屏服务【tg:seogoogle987】,xJs
- https://www.goodreads.com/quotes/tag/谷歌霸屏服务【tg:seogoogle987】9LO
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=谷歌霸屏服务【tg:seogoogle987】,CMj
- https://www.shacknews.com/editorial-search?q=谷歌霸屏服务【tg:seogoogle987】,UCT
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌霸屏服务【tg:seogoogle987】,ri7
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌霸屏服务【tg:seogoogle987】,6Fg
- https://www.oikos-tecnics.com/?s=谷歌霸屏服务【tg:seogoogle987】,xE5
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=谷歌霸屏服务【tg:seogoogle987】,MZJ
- https://www.abbreviations.com/谷歌霸屏服务【tg:seogoogle987】jwV
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌霸屏服务【tg:seogoogle987】d45
- https://www.parl.ca/legisinfo/fr/projets-de-loi?parlsession=all&view=list&keywords=谷歌霸屏服务【tg:seogoogle987】,pQ6