您现在的位置是:挑肥拣瘦网 > 热点
云计算核心技术Docker教程:Docker 守护进程dockerd的DEVICEMAPPER选项
挑肥拣瘦网2026-11-14【热点】{固定数字1}人已围观
简介必应快排【tg:seogoogle987】
使用带有--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=true算核"
]
}
dm.thinpooldev
指定用于精简池的自定义块存储设备。
如果将块设备用于设备映射器存储,则最好lvm 用于创建和管理精简池卷。然后将该卷交给Docker以专门创建映像和容器所需的快照卷。
管理Engine外部心技的精简池是使Docker利用设备映射器精简资源调配作为Docker容器的后备存储的功能最丰富的方法。基于lvm的精简池管理功能的重点包括:自动或交互式精简池调整大小支持,动态更改精简池功能,当lvm激活精简池时自动进术D行精简元数据检查等。
如果没有提供精简池,则作为回退,将创建回送文件。环回速度非常慢,但是可以在不进行任何预配置存储的情况下使用。强烈建议您在生产中不要使用环回。确保您的Engine守护程序提供了一个 --storage-oocpt dm.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 --storDoage-opt dm.thinp_autoextend_threshold=80
dm.thinp_autoextend_percent
设置值百分比值以在lvm 尝试自动扩展可用空间时增加精简池的数量[100 =禁用]
例:
$ sckudo dockerd --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
$ su程ddo rm -rf /var/lib/docker
$ sudo service docker start
很赞哦!(03342)
热门文章
站长推荐
友情链接
- 标签: 康师傅
- https://www.mexperience.com/?T=1686132112324&s=必应快排【tg:seogoogle987】,T7s
- https://www.prattlibrary.org/search?q=必应快排【tg:seogoogle987】,ZOh
- https://www.teamlab.art/?submit=必应快排【tg:seogoogle987】,TJ1
- https://www.lneg.pt/?cat=140&s=必应快排【tg:seogoogle987】,7Ay
- https://www.kyuhoshi.com/?s=必应快排【tg:seogoogle987】,FD2
- https://www.remit.co.jp/pt/?action=CHECK&s=必应快排【tg:seogoogle987】,xZP
- https://www.u-bourgogne.fr/?cat=117&s=必应快排【tg:seogoogle987】,teD
- https://www.remit.co.jp/ne/?s=必应快排【tg:seogoogle987】,NuI
- https://www.sebson.de/en/search?query=必应快排【tg:seogoogle987】,rCC
- https://www.sportbiketracktime.com/index.php?route=product/search&tag=必应快排【tg:seogoogle987】,hjr
- https://www.jusoen.com/addreng.asp?p1=必应快排【tg:seogoogle987】xLh
- https://www.pierreherme.com/catalogsearch/result/?q=必应快排【tg:seogoogle987】,BPO
- https://www.mygrandma.com/Items.aspx?search=必应快排【tg:seogoogle987】,8Iu
- https://www.sogou.com/web?query=必应快排【tg:seogoogle987】,rY3
- https://www.xbiao.com/search/index?tpf&wd=必应快排【tg:seogoogle987】,Ywz
- https://www.wheels24.gr/?action=CHECK&s=必应快排【tg:seogoogle987】,YOI
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=必应快排【tg:seogoogle987】,LE3
- https://www.stonerealestate.com.au/?cat=100&s=必应快排【tg:seogoogle987】,CQQ
- https://www.youm7.com/Home/Search?allwords=必应快排【tg:seogoogle987】,yYq
- https://www.ucycle.com/search/=必应快排【tg:seogoogle987】,1G8
- https://www.sweat.com/collections/vendors?q=必应快排【tg:seogoogle987】,Y1j
- https://www.nyif.com/catalogsearch/result/index/?f=sarbanesoxleyU&index=me_cms_pe&lit=20&mode=list&p=1&q=必应快排【tg:seogoogle987】,vL3
- https://www.oikos-tecnics.com/?s=必应快排【tg:seogoogle987】,92G
- https://www.totolink.vn/search/必应快排【tg:seogoogle987】,urZ
- https://www.yidian51.com/taobao/必应快排【tg:seogoogle987】,sEl
- https://www.jusoen.com/addreng.asp?p1=必应快排【tg:seogoogle987】R7g
- https://www.openspaceinstitute.org/search?q=必应快排【tg:seogoogle987】,FXZ
- https://www.pmindia.gov.in/en/?s=必应快排【tg:seogoogle987】,WFx
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=必应快排【tg:seogoogle987】,JCR
- https://www.pixiv.net/tags/必应快排【tg:seogoogle987】,vI9
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=必应快排【tg:seogoogle987】,BFL
- https://www.posten-portal.de/search?query=必应快排【tg:seogoogle987】,TES
- https://www.military-history.org/?s=必应快排【tg:seogoogle987】,vgZ
- https://www.luxurysociety.com/en/search?q=必应快排【tg:seogoogle987】,7lv
- https://www.manga-news.com/index.php/recherche/?q=必应快排【tg:seogoogle987】,0Pj
- https://www.tahiti-infos.com/search/必应快排【tg:seogoogle987】,0Ru
- https://www.roberthalf.com/us/en/jobs/all/必应快排【tg:seogoogle987】Ahq
- https://www.swecobelgium.be/?page=9&s=必应快排【tg:seogoogle987】,uap
- https://yscc1986.net/search/必应快排【tg:seogoogle987】ubM
- https://www.solerpalau.com/en-en/catalogsearch/result/?q=必应快排【tg:seogoogle987】,CVA
- https://www.tarleton.edu/news/search/必应快排【tg:seogoogle987】,oRx
- https://www.nonsolocap.it/cap?action=SEARCH&k=必应快排【tg:seogoogle987】,I5o
- https://www.nextavenue.org/?action=QUERY&s=必应快排【tg:seogoogle987】,KWY
- https://www.temu.com/search_result.html?search_key=必应快排【tg:seogoogle987】94d
- https://www.yli.ro/catalogsearch/result/?q=必应快排【tg:seogoogle987】,2ut
- https://www.ng-slo.si/si/iskanje?cat=114&q=必应快排【tg:seogoogle987】,86h
- https://www.tarleton.edu/?s=必应快排【tg:seogoogle987】,AiL
- https://www.supersauna.de/catalogsearch/result/?q=必应快排【tg:seogoogle987】,RB7
- https://www.madebyoranges.com/nl/search/必应快排【tg:seogoogle987】,4Hn
- https://www.wuv.edu/?s=必应快排【tg:seogoogle987】,uIY







