您现在的位置是:貌合心离网 > 热点
云计算核心技术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"
]
}
d算核m.thinpooldev
指定用于精简池的自定义块存储设备。
如果将块设备用于设备映射器存储,则最好lvm 用于创建和管理精简池卷。然后将该卷交给Docker以专门创建映像和容器所需的快照卷。
管理Engine外部的精简池是使Do心技cker利用设备映射器精简资源调配作为Docker容器的后备存储的功能最丰富的方法。基于lvm的精简池管理功能的重点包括:自动或交互式精简池调整大小支持,动态更改精简池功能,当lvm激活精简池时自动进行精简元数据检查术D等。
如果没有提供精简池,则作为回退,将创建回送文件。环回速度非常慢,但是可以在不进行任何预配置存储的情况下使用。强烈建议您在生产中不要使用环回。确保您的Engine守护程序提供了一个 --storage-opt dm.thocinpooldev参数。
例:
$ sudo dockerd --storage-opt dm.thinpooldev=/dev/mapper/thin-pool
dm.directlvm_device
作为提供上述精简池的替代方法,Dkeocker可以为您设置一个块设备。
例:
$ sudo dockerd --storage-opt dm.directlvm_device=/dev/xvdf
dm.thinp_percent
设置用于存储的传入块设备的百分比。
例:
$ sr教udo 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-opt dmDo.thinp_autoextend_threshold=80
dm.thinp_autoextend_percent
设置值百分比值以在lvm 尝试自动扩展可用空间时增加精简池的数量[100 =禁用]
例:
$ sudo dockerd -ck-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/l程dib/docker
$ sudo service docker start
很赞哦!(9731)
下一篇: 为何金融领域应用“云遣返”现象大增?
热门文章
站长推荐
友情链接
- 标签: 康师傅
- https://blvdseafood.com/?s=谷歌霸屏推广【tg:seogoogle987】ffo
- https://www.sonepar.ch/fr/search?q=谷歌霸屏推广【tg:seogoogle987】,lcu
- https://www.ussalabama.com/?action=CHECK&s=谷歌霸屏推广【tg:seogoogle987】,rBV
- https://www.nyif.com/catalogsearch/result/?q=谷歌霸屏推广【tg:seogoogle987】,r6X
- https://search.danawa.com/dsearch.php?query=谷歌霸屏推广【tg:seogoogle987】OHd
- https://www.shacknews.com/editorial-search?q=谷歌霸屏推广【tg:seogoogle987】,pRw
- https://www.rea.govt.nz/search?searchterm=谷歌霸屏推广【tg:seogoogle987】,utO
- https://www.signingsavvy.com/sentence/谷歌霸屏推广【tg:seogoogle987】,ito
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌霸屏推广【tg:seogoogle987】tGm
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌霸屏推广【tg:seogoogle987】9C7
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌霸屏推广【tg:seogoogle987】,JKZ
- https://www.lechzuers.com/de/search?cat=163&q=谷歌霸屏推广【tg:seogoogle987】,E3c
- https://www.realsporting.com/buscador?buscar=谷歌霸屏推广【tg:seogoogle987】,cCY
- https://www.tullygroup.us/?ID=hbkq8jFjrQlVRrwzEmvoUJJAY4e1Lfo5&s=谷歌霸屏推广【tg:seogoogle987】,ZYX
- https://www.uckfieldtc.gov.uk/?s=谷歌霸屏推广【tg:seogoogle987】,QHC
- https://www.unclefossil.com/search/谷歌霸屏推广【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.remit.co.jp/vi/?s=谷歌霸屏推广【tg:seogoogle987】VWp
- https://www.remit.co.jp/en/?s=谷歌霸屏推广【tg:seogoogle987】,SXw
- https://www.teamlab.art/pt/?submit=谷歌霸屏推广【tg:seogoogle987】,S01
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=谷歌霸屏推广【tg:seogoogle987】,1pR
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌霸屏推广【tg:seogoogle987】,h1c
- https://www.usslexington.com/?action=QUERY&s=谷歌霸屏推广【tg:seogoogle987】,Mkk
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏推广【tg:seogoogle987】Jh8
- https://www.sic-info.org/?s=谷歌霸屏推广【tg:seogoogle987】,54b
- https://www.temu.com/search_result.html?search_key=谷歌霸屏推广【tg:seogoogle987】3kb
- https://www.stonerealestate.com.au/?cat=100&s=谷歌霸屏推广【tg:seogoogle987】,yQm
- https://www.swanagerailway.co.uk/search?q=谷歌霸屏推广【tg:seogoogle987】,8Vy
- https://www.writingforward.com/?action=SEARCH&s=谷歌霸屏推广【tg:seogoogle987】,DuE
- https://www.kaiyueleather.com/search/谷歌霸屏推广【tg:seogoogle987】,fzg
- https://www.metaltix.com/?view=tours&filter=search&q=谷歌霸屏推广【tg:seogoogle987】,2QA
- https://www.abbreviations.com/谷歌霸屏推广【tg:seogoogle987】dCq
- https://www.urmc.rochester.edu/news/search?q=谷歌霸屏推广【tg:seogoogle987】,Kdi
- https://www.wattpad.com/search/谷歌霸屏推广【tg:seogoogle987】hi7
- https://www.kaliastyle.com/catalogsearch/result/?q=GOOGLE谷歌霸屏推广【tg:seogoogle987】,JLl
- https://www.silentiumpc.com/en/search/谷歌霸屏推广【tg:seogoogle987】,FCW
- https://www.kuaikanmanhua.com/sou/谷歌霸屏推广【tg:seogoogle987】,sdN
- https://www.tombow.com/search/谷歌霸屏推广【tg:seogoogle987】,qvl
- https://www.merchbar.com/search?q=谷歌霸屏推广【tg:seogoogle987】,9Pq
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌霸屏推广【tg:seogoogle987】,Sa9
- https://m.shoppinghow.kakao.com/m/search/q/谷歌霸屏推广【tg:seogoogle987】WQg
- https://www.televes.com/es/catalogsearch/result/?q=谷歌霸屏推广【tg:seogoogle987】,wIo
- https://dict.naver.com/dict.search?dicQuery&query=谷歌霸屏推广【tg:seogoogle987】Cmo
- https://www.woorden.org/spreekwoord.php?woord=谷歌霸屏推广【tg:seogoogle987】,QX3
- https://www.schenckprocess.com/search?q=谷歌霸屏推广【tg:seogoogle987】,xBu
- https://www.luxurysociety.com/en/search?q=谷歌霸屏推广【tg:seogoogle987】,g9h
- https://www.teamlab.art/ko/?submit=谷歌霸屏推广【tg:seogoogle987】,07P
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌霸屏推广【tg:seogoogle987】,UFd
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌霸屏推广【tg:seogoogle987】,ixh
- https://www.tarleton.edu/?s=谷歌霸屏推广【tg:seogoogle987】,Szd
- https://www.openspaceinstitute.org/search?q=谷歌霸屏推广【tg:seogoogle987】,I4N







