您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker Swarm 模式授予服务访问卷或绑定挂载的权限
热点79156人已围观
简介...
为了获得最佳性能和可移植性,您应该避免将重要数据直接写入容器的可写层,而应云计使用数据卷或绑定挂载。这个原则也适用于服务。
您可以为 swarm 中的服务创建两算核种类型的挂载,volume挂载或 bind挂载。无论您使用哪种类型的挂载,请--m心技ount在创建服务时使用标志进行配置 ,或 在更新现有服务时使用--mount-术Dadd或--mount-rm标志进行配置。如果不指定类型,则默认为数据卷。
数据oc卷
数据卷是独立于容器存在的存储。swarm 服务下数据卷的生命周期类似于容器下的生命ke周期。卷比任务和服务更有效,因此必须单独管理它们的移除。可以在部署服务之前创建卷r教,或者如果在特定主机上安排任务时它们不存在于特定主机上,则会根据服务上的卷规程:范自动创建它们。
要将现有数据卷与服务一起使用,请使用以下--mount标志:
如果在Do将任务调度到特定主机时不存在具有相同的卷,则创建一个。默认的卷驱动程序是locckal. 要在此按需创建模式中使用不同的卷驱动程序,请使用以下--mount标志指定er驱动程序及其选项:
绑定挂载
绑定挂载是来自调度程序为任务部署容器的主机的文件系统 S路径。Docker 将路径挂载到容器中。在 swarm 为任务初始化容器之前,文件wa系统路径必须存在。
以下示例显示了绑定安装语法:
挂载读写绑定:
挂载只读绑定:
Tags:
相关文章
天猫超市 15 周年放大招:首个AI超市智能体“超喵”正式上岗
热点天猫超市在15周年商家大会上正式发布了AI超市智能体“超喵1.0”,标志着线上零售进入智能调度时代。这一创新工具包含16个子智能体,全面覆盖了从商品前期规划到后期供应链管理的经营全链路。 作为全国首个...
【热点】
阅读更多运动会入场式音乐
热点前言:运动会开幕式入场音乐《运动员进行曲》由原中国人民解放军军乐团吴光锐、贾双、李明秀三位同志共同执笔而成下载地址:http://mp3.baidu.com/m?f=ms&rn=&tn...
【热点】
阅读更多IBM Q2钀ユ敹187.5浜跨編鍏冨悓姣斿�3% 鍏朵腑浜戣�绠椾笟鍔¤惀鏀�70浜跨編鍏�
热点7鏈�20鏃ユ秷鎭�紝鎹�浗澶栧獟浣撴姤閬擄紝褰撳湴鏃堕棿鍛ㄤ竴锛孖BM鍏�竷浜嗘埅鑷�2021骞�6鏈�30鏃ョ殑2021骞寸�浜屽�搴﹁储鎶ャ€傝储鎶ユ樉绀猴紝璇ュ叕鍙哥�浜屽�搴︾殑钀ユ敹涓�1...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.lauben.com/en/?action=SEARCH&s=外推留痕软件【tg:seogoogle987】,5O1
- https://www.sbaad.no/search/外推留痕软件【tg:seogoogle987】,ld3
- https://www.lneg.pt/?cat=140&s=外推留痕软件【tg:seogoogle987】,Gyn
- https://www.tullygroup.us/?ID=hbkq8jFjrQlVRrwzEmvoUJJAY4e1Lfo5&s=外推留痕软件【tg:seogoogle987】,loH
- https://xehay.vn/tim-kiem/=外推留痕软件【tg:seogoogle987】,OvI
- https://www.ng-slo.si/si/iskanje?cat=114&q=外推留痕软件【tg:seogoogle987】,Pim
- https://www.paxnet.co.kr/search/jongmok?kwd=外推留痕软件【tg:seogoogle987】n3k
- https://www.sic-info.org/?s=外推留痕软件【tg:seogoogle987】,ijh
- https://www.flickr.com/photos/tags/外推留痕软件【tg:seogoogle987】zCU
- https://www.rostaing.com/catalogsearch/result/?cat=22&q=外推留痕软件【tg:seogoogle987】,zc7
- https://www.monroecounty.gov/search/?q=外推留痕软件【tg:seogoogle987】,mix
- https://www.pierreherme.com/catalogsearch/result/?q=外推留痕软件【tg:seogoogle987】,Mwh
- https://www.maigoo.com/search/?block=&q=外推留痕软件【tg:seogoogle987】,iuX
- https://hsmoa.com/search?query=外推留痕软件【tg:seogoogle987】buS
- https://www.mynextmove.org/find/search?s=外推留痕软件【tg:seogoogle987】,n6c
- https://search.danawa.com/dsearch.php?query=外推留痕软件【tg:seogoogle987】dcp
- https://www.valuecolleges.com/?action=QUERY&s=外推留痕软件【tg:seogoogle987】,Dlq
- https://www.remit.co.jp/en/?s=外推留痕软件【tg:seogoogle987】,j8X
- https://www.unclefossil.com/search/外推留痕软件【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.jusoen.com/addreng.asp?p1=外推留痕软件【tg:seogoogle987】BND
- https://www.woorden.org/spreekwoord.php?woord=外推留痕软件【tg:seogoogle987】,VYx
- https://www.kores.com/?s=外推留痕软件【tg:seogoogle987】,1Ed
- https://www.takachi-enclosure.com/search?eqYB=gnI31Ou&text=外推留痕软件【tg:seogoogle987】,CKl
- https://www.lneg.pt/en/?s=外推留痕软件【tg:seogoogle987】,Xpp
- https://www.universal-music.co.jp/search/?q=外推留痕软件【tg:seogoogle987】,vOy
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=外推留痕软件【tg:seogoogle987】9Jn
- https://www.nyif.com/catalogsearch/result/index/?f=sarbanesoxleyU&index=me_cms_pe&lit=20&mode=list&p=1&q=外推留痕软件【tg:seogoogle987】,a5x
- https://www.remit.co.jp/pt/?action=CHECK&s=外推留痕软件【tg:seogoogle987】,qER
- https://www.u-bourgogne.fr/?cat=117&s=外推留痕软件【tg:seogoogle987】,nSS
- https://www.shacknews.com/editorial-search?q=外推留痕软件【tg:seogoogle987】,3aN
- https://www.mesec.cz/vyhledavani/?qs=外推留痕软件【tg:seogoogle987】,1LI
- https://www.roberthalf.com/us/en/jobs/all/外推留痕软件【tg:seogoogle987】lBL
- https://www.uctronics.com/catalogsearch/result/?q=外推留痕软件【tg:seogoogle987】,J1Q
- https://www.randjleather.co.uk/index.php?route=product/search&tag=外推留痕软件【tg:seogoogle987】,KuY
- https://www.temu.com/search_result.html?search_key=外推留痕软件【tg:seogoogle987】d1p
- https://www.pearson.com/en-us/search.html?aq=外推留痕软件【tg:seogoogle987】,FPa
- https://www.le-trend.com/en/search/=外推留痕软件【tg:seogoogle987】,NeC
- https://www.synonyms.com/antonyms/外推留痕软件【tg:seogoogle987】,U4T
- https://www.rea.govt.nz/search?searchterm=外推留痕软件【tg:seogoogle987】,koh
- https://www.lauben.com/de/?s=外推留痕软件【tg:seogoogle987】,nX2
- https://www.sic-info.org/en/?s=外推留痕软件【tg:seogoogle987】,SA3
- https://www.ushmm.org/search/results.php?q=外推留痕软件【tg:seogoogle987】,exB
- https://www.pickett.co.uk/collections/vendors?q=外推留痕软件【tg:seogoogle987】,DxU
- https://www.flickr.com/photos/tags/外推留痕软件【tg:seogoogle987】49L
- https://www.mi.com/search?keyword=外推留痕软件【tg:seogoogle987】,kqq
- https://www.yli.ro/catalogsearch/result/?q=外推留痕软件【tg:seogoogle987】,ylo
- https://hsmoa.com/search?query=外推留痕软件【tg:seogoogle987】OcA
- https://www.trockenmittel.ch/catalogsearch/result/?iC=ZM3&q=外推留痕软件【tg:seogoogle987】,nON
- https://www.springfieldlibrary.org/?s=外推留痕软件【tg:seogoogle987】,I2w
- https://www.nextavenue.org/?action=QUERY&s=外推留痕软件【tg:seogoogle987】,yaY