您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker 守护进程dockerd的DEVICEMAPPER选项
热点041人已围观
简介...
使用带有--storage-opt标志指定的选项来配置特定的存储驱动程序 。
这是Linux上devicemapper的配置文件示例:
{
"storage-driver": "devicemapper",
"stor云计age-opts": [
"dm.thinpooldev=/dev/mapper/thin-pool",
"dm.use_deferred_deletion=true",
"dm.use_deferred_removal=t算核rue"
]
}
dm.thinpooldev
指定用于精简池的自定义块存储设备。
如果将块设备用于设备映射器存储,则最好lvm 用于创建和管理精简池卷。然后将该卷交给Docker以专门创建映像和容器所需的快照卷。
管理Engine外部心技的精简池是使Docker利用设备映射器精简资源调配作为Docker容器的后备存储的功能最丰富的方法。基于lvm的精简池管理功能的重点包括:自动或交互式精简池调整大小支持,动态更改精简池功能,当lvm激活精简池时自动进行精简元术D数据检查等。
如果没有提供精简池,则作为回退,将创建回送文件。环回速度非常慢,但是可以在不进行任何预配置存储的情况下使用。强烈建议您在生产中不要使用环回。确保您的Engine守护程序提供了一个 --storage-opt dmoc.thinpooldev参数。
例:
$ sudo dockerd --storage-opt dm.thinpooldev=/dev/mapper/thin-pool
dm.directlvm_device
作为提供上述精简池的替代ke方法,Docker可以为您设置一个块设备。
例:
$ sudo dockerd --storage-opt dm.directlvm_device=/dev/xvdf
dm.thinp_percent
设置用于存储的传入块设备的百分比。
例:
$r教 sudo dockerd --storage-opt dm.thinp_percent=95
dm.thinp_metapercent
设置传入的块设备用于元数据存储的百分比。
例:
$ sudo dockerd --storage-opt程: dm.thinp_metapercent=1
dm.thinp_autoextend_threshold
设置lvm尝试自动扩展可用空间之前使用的空间百分比的值[100 =禁用]
例:
$ sudo dockerd --storage-oDopt dm.thinp_autoextend_threshold=80
dm.thinp_autoextend_percent
设置值百分比值以在lvm 尝试自动扩展可用空间时增加精简池的数量[100 =禁用]
例:
$ sudo dockerckd --storage-opt dm.thinp_autoextend_percent=20
dm.basesize
指定创建基本设备时要使用的大小,这会限制图像和容器的大小。默认值为10G。请注意,瘦设备本来就是“稀疏”的,因此一个er几乎是空的10G设备不会在池上使用10 GB的空间。但是,如果设备更大,则文件系统将为空情况使用更多空间。
可以在守护程序重新启动时增加基本设备的大小,这将使所有将来的映像和容器(基于这些新映像)都具有新的基本设备大小。
例 守子
$ sudo dockerd --storage-opt dm.basesize=50G
这会将基本设备的大小增加到50G。如果现有基本设备大小大于50G,则Docker守护程序将引发错误。用户可以使用此选项来扩展基本设备的大小,但是护进不允许缩小。
此值会影响系统范围的“基本”空文件系统,该文件系统可能已由拉取的映像初始化和继承。通常,对此值进行更改需要其他步骤才能生效:
$ sudo service docker stop
$ sudo rm -rf /var/lib/doc程dker
$ sudo service docker start
Tags:
相关文章
标签: 猎豹移动 AI机器人 财报 机器人业务
热点云梦级3月24日云梦级消息,3月24日,猎豹移动发布2025年第四季度及全年财报。2025全年总收入达11.504亿元,同比增长42.6%,Non-GAAP营业利润为1421万元。公司经营扭亏为盈,标...
【热点】
阅读更多AI化身监工,上班还能摸鱼吗?
热点俗话说“上班摸鱼一时爽,一直摸鱼一直爽。” 上班族这群“时间管理大师们”往往能在上班的时间中挤出一半的时间来摸鱼:在距离上班时间的最后一分钟打卡,午饭时间未到就打开各大外卖APP,工作思路受阻就去洗手...
【热点】
阅读更多AI人才服务平台Mercor寻求100亿美元估值C轮融资,年收入逼近5亿美元
热点据TechCrunch获得的营销文件和两名知情人士透露,专注于为OpenAI、Meta等科技公司提供AI模型训练专家的初创公司Mercor正在与投资者就C轮融资进行谈判。该公司目前寻求 100 亿美元...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://m.shoppinghow.kakao.com/m/search/q/谷歌留痕软件【tg:seogoogle987】h33
- https://www.totolink.vn/search/谷歌留痕软件【tg:seogoogle987】,wSi
- https://www.smics.com/tc/site/search?token=谷歌留痕软件【tg:seogoogle987】,3QN
- https://search.danawa.com/dsearch.php?query=谷歌留痕软件【tg:seogoogle987】Kaq
- https://www.pearlstonecenter.org/search/谷歌留痕软件【tg:seogoogle987】,YYP
- https://www.springfieldlibrary.org/?s=谷歌留痕软件【tg:seogoogle987】,wTc
- https://www.madebyoranges.com/nl/search/谷歌留痕软件【tg:seogoogle987】,Qjb
- https://www.rostaing.com/catalogsearch/result/?cat=22&q=谷歌留痕软件【tg:seogoogle987】,rxT
- https://www.krisinformation.se/en/search?q=谷歌留痕软件【tg:seogoogle987】,QFf
- https://www.pixiv.net/tags/谷歌留痕软件【tg:seogoogle987】,j6I
- https://www.teamlab.art/th/?submit=谷歌留痕软件【tg:seogoogle987】,Daf
- https://www.shacknews.com/editorial-search?q=谷歌留痕软件【tg:seogoogle987】,7re
- https://www.navymwr.org/search/?query=谷歌留痕软件【tg:seogoogle987】,vfY
- https://www.unclefossil.com/search/谷歌留痕软件【tg:seogoogle987】,9Zx
- https://www.teamlab.art/it/?submit=谷歌留痕软件【tg:seogoogle987】,0HO
- https://www.sensorshop24.de/catalogsearch/result/index/?type=132&q=谷歌留痕软件【tg:seogoogle987】,80e
- https://hsmoa.com/search?query=谷歌留痕软件【tg:seogoogle987】sHw
- https://www.lezhin.com/ko/tags/谷歌留痕软件【tg:seogoogle987】,InL
- https://www.losgatoschamber.com/list/search?action=SEARCH&q=谷歌留痕软件【tg:seogoogle987】,eNR
- https://www.riohondo.edu/?action=QUERY&s=谷歌留痕软件【tg:seogoogle987】,cmk
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌留痕软件【tg:seogoogle987】,cxz
- https://www.selfsufficientish.com/main/?s=谷歌留痕软件【tg:seogoogle987】,fAY
- https://www.yr.no/en/search?q=谷歌留痕软件【tg:seogoogle987】,Fuz
- https://www.pickett.co.uk/collections/vendors?q=谷歌留痕软件【tg:seogoogle987】,pbt
- https://www.qylaws.com/search/谷歌留痕软件【tg:seogoogle987】,ofu
- https://www.reallywildbirdfood.co.uk/store/search?q=谷歌留痕软件【tg:seogoogle987】,Rb3
- https://www.nytimes.com/search?dropmab=true&query=谷歌留痕软件【tg:seogoogle987】,u1O
- https://www.lyrics.com/lyrics/谷歌留痕软件【tg:seogoogle987】,Egr
- https://store.line.me/search/sticker/ja?q=谷歌留痕软件【tg:seogoogle987】tYc
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌留痕软件【tg:seogoogle987】,147
- https://www.stonerealestate.com.au/?cat=100&s=谷歌留痕软件【tg:seogoogle987】,BsH
- https://www.welshmountainzoo.org/shop/index.php?routeproduct/search&tag=谷歌留痕软件【tg:seogoogle987】,YLI
- https://www.londontheatredirect.com/search/谷歌留痕软件【tg:seogoogle987】,OvW
- https://www.wheels24.gr/?action=CHECK&s=谷歌留痕软件【tg:seogoogle987】,JpC
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌留痕软件【tg:seogoogle987】LqF
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌留痕软件【tg:seogoogle987】kpi
- https://www.yli.ro/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,x3l
- https://www.polar-tech.com/?action=QUERY&s=谷歌留痕软件【tg:seogoogle987】,iv3
- https://www.nslcleaders.org/?s=谷歌留痕软件【tg:seogoogle987】,VZf
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌留痕软件【tg:seogoogle987】,u4w
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌留痕软件【tg:seogoogle987】,ls0
- https://www.localfootdoc.com/?s=谷歌留痕软件【tg:seogoogle987】,SqL
- https://www.olx.ba/pretraga?trazilica=谷歌留痕软件【tg:seogoogle987】,EYq
- https://www.mingwai.edu.hk/?langzh-hant&s=谷歌留痕软件【tg:seogoogle987】,0mZ
- https://www.nyif.com/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,WjO
- https://yscc1986.net/search/谷歌留痕软件【tg:seogoogle987】XEW
- https://www.vocabulary.com/dictionary/谷歌留痕软件【tg:seogoogle987】,fPQ
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=谷歌留痕软件【tg:seogoogle987】,iFr
- https://www.le-trend.com/en/search/=谷歌留痕软件【tg:seogoogle987】,WyJ
- https://wydden.com/?ID=r8w9WMSKWkOcmiaFWaUv0dzMdqZWfKtF&s=谷歌留痕软件【tg:seogoogle987】,hzX