您现在的位置是:热点 >>正文
云计算核心技术Docker教程:清理未使用的Docker网络
热点397人已围观
简介...
Docker采取了一种保守的方法来清理未使用的对象(通常称为“垃圾收集”),例如图像,容器,卷和网络:除非您明确要求Docker这样做,否则通常不会删除这云计些对象。这可能会导致Docker使用额外的磁盘空间。对于每种类型的对象,Docker提供一个prune命令。此外,您可以docker system prune用算核来一次清除多种类型的对象。
清理网络
Docker网络不会占用太多磁盘空间,但它们确实会创建iptables 规则,桥接网络设备和路由表条目。要清理这些东西,您可以doc心技ker network prune用来清理任何容器都没有使用的网络。
$ docker network prune
WARNING! This will remove all ne术Dtworks not used by at least one container.
Are you sure you want to continue? [y/N] y
默认情况下,系统会提示您继oc续。要绕过提示,请使用-f或 --force标志。
默认情况下,将删除所有未使用的网络。您可以使用该--filter标志限制范围。例如,以下命令仅删除24小时之前的网ke络:
$ docker network prune --filter "until=24h"
全部清理
该docker system prune命令是修剪图像,容器和网络的快捷r教方式。默认情况下,不修剪卷,并且必须指定--volumes用于docker system prune修剪卷的 标志。
$ docker system prune
WARNI程:NG! This will remove:
- all stopped containers
- all networks not used by at least one container
-清理 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 containe用的rs
- all networks not used by at least one container
- all volumes not used by at least one containDoer
- all dangling images
- all build cache
Are you sure you want to continue? [y/N] y
默认情况下,系统会提示您继ck续。要绕过提示,请使用-f或 --force标志。
Tags:
相关文章
在边缘AI与云AI之间寻找平衡
热点边缘的AI允许通过本地化处理进行实时机器学习,从而实现即时数据处理,详细的安全性和增强的客户体验。同时,许多企业正在寻求将AI推入云端,这可以减少实施障碍,改善知识共享并支持更大的模型。前进的道路在于...
【热点】
阅读更多六公主是什么梗工商银行APP
热点张子枫六公主是什么梗?六公主代表央视台的6频道电影频道。6频道对张子枫的评价一直都很好。所以都说张子枫是六公主的"吹枫机"。六公主代表央视台的6频道电影频道。6频道对张子枫的......
【热点】
阅读更多标签: 港交所 巴曙松 首席中国经济学家 香港交易所
热点云梦级3月24日云梦级消息,据腾讯新闻报道,3月24日,多个知情人士称,港交所前董事总经理、首席中国经济学家巴曙松已于近期失联。部分信源称,巴曙松已被有关部门带走调查,但暂未能获悉其涉案件详情。 巴曙...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.ucycle.com/search/=谷歌霸屏外推技术【tg:seogoogle987】,oc6
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=谷歌霸屏外推技术【tg:seogoogle987】,TiY
- https://xn--lgernevedlystskoven-lxb.dk/search/谷歌霸屏外推技术【tg:seogoogle987】,idO
- https://www.normani.de/search?q=谷歌霸屏外推技术【tg:seogoogle987】,EMt
- https://www.unclefossil.com/search/谷歌霸屏外推技术【tg:seogoogle987】,f6N
- https://www.posten-portal.de/search?query=谷歌霸屏外推技术【tg:seogoogle987】,LhP
- https://www.remit.co.jp/id/?s=谷歌霸屏外推技术【tg:seogoogle987】,GvG
- https://www.monroecounty.gov/search/?q=谷歌霸屏外推技术【tg:seogoogle987】,bBg
- https://www.tiktok.com/tag/谷歌霸屏外推技术【tg:seogoogle987】,408
- https://www.world-architects.com/en/search?term=谷歌霸屏外推技术【tg:seogoogle987】,fQz
- https://www.wattpad.com/search/谷歌霸屏外推技术【tg:seogoogle987】rkM
- https://www.metaltix.com/?view=tours&filter=search&q=谷歌霸屏外推技术【tg:seogoogle987】,p5I
- https://www.roberthalf.com/us/en/jobs/all/谷歌霸屏外推技术【tg:seogoogle987】KuW
- https://www.southmeadows.co.uk/2019/07/?s=谷歌霸屏外推技术【tg:seogoogle987】,QQR
- https://www.uckfieldtc.gov.uk/?s=谷歌霸屏外推技术【tg:seogoogle987】,H4A
- https://www.wheels24.gr/?action=CHECK&s=谷歌霸屏外推技术【tg:seogoogle987】,PcE
- https://m.shoppinghow.kakao.com/m/search/q/谷歌霸屏外推技术【tg:seogoogle987】VkL
- https://www.lezhin.com/ko/tags/谷歌霸屏外推技术【tg:seogoogle987】,FIv
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏外推技术【tg:seogoogle987】4h2
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌霸屏外推技术【tg:seogoogle987】,lsT
- https://www.uctronics.com/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,E9f
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌霸屏外推技术【tg:seogoogle987】,3zs
- https://www.shopping.com/search.html?keyword=谷歌霸屏外推技术【tg:seogoogle987】,ASh
- https://www.ntv.co.jp/3min/search/?action=QUERY&q=谷歌霸屏外推技术【tg:seogoogle987】,Ahj
- https://www.rookwinkel.nl/catalogsearch/result/index/?q=谷歌霸屏外推技术【tg:seogoogle987】,43U
- https://store.line.me/search/sticker/ja?q=谷歌霸屏外推技术【tg:seogoogle987】Jim
- https://www.schenckprocess.com/search?q=谷歌霸屏外推技术【tg:seogoogle987】,HdA
- https://www.qwant.com/?q=谷歌霸屏外推技术【tg:seogoogle987】,NOW
- https://www.goodreads.com/quotes/tag/谷歌霸屏外推技术【tg:seogoogle987】IRi
- https://www.mi.com/search?keyword=谷歌霸屏外推技术【tg:seogoogle987】,h1m
- https://www.youtube.com/results?search_query=谷歌霸屏外推技术【tg:seogoogle987】,q2M
- https://www.kawainter.com/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,0Td
- https://nicolazzi.it/en/?s=谷歌霸屏外推技术【tg:seogoogle987】,MPf
- https://search.danawa.com/dsearch.php?query=谷歌霸屏外推技术【tg:seogoogle987】3Kk
- https://www.roberthalf.com/us/en/jobs/all/谷歌霸屏外推技术【tg:seogoogle987】zhW
- https://www.voices.com/talents/search?keywords=谷歌霸屏外推技术【tg:seogoogle987】,UeU
- https://www.ons.gov.uk/search?q=谷歌霸屏外推技术【tg:seogoogle987】,XQG
- https://www.tombow.com/search/谷歌霸屏外推技术【tg:seogoogle987】,9g2
- https://www.abbreviations.com/谷歌霸屏外推技术【tg:seogoogle987】gld
- https://www.mesec.cz/vyhledavani/?qs=谷歌霸屏外推技术【tg:seogoogle987】,M7w
- https://www.reallywildbirdfood.co.uk/store/search?q=谷歌霸屏外推技术【tg:seogoogle987】,jck
- https://www.sbaad.no/?s=谷歌霸屏外推技术【tg:seogoogle987】,kRK
- https://www.livehindustan.com/tags/谷歌霸屏外推技术【tg:seogoogle987】,alT
- https://www.dba.dk/soeg/?soeg=谷歌霸屏外推技术【tg:seogoogle987】Er7
- https://www.kaiyueleather.com/search/谷歌霸屏外推技术【tg:seogoogle987】,QWd
- https://www.oprny.com/search.php?search_query=谷歌霸屏外推技术【tg:seogoogle987】,ZZc
- https://www.televes.com/es/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,416
- https://www.kelsa.co.uk/catalogsearch/result/index/?T=1686132119291&q=谷歌霸屏外推技术【tg:seogoogle987】,1jW
- https://www.theaerogroup.net/?cat=28&s=谷歌霸屏外推技术【tg:seogoogle987】,xpw
- https://www.manga-news.com/index.php/recherche/?q=谷歌霸屏外推技术【tg:seogoogle987】,fsg