您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker使用卷启动服务
热点7936391人已围观
简介...
启动服务并定义卷时,每个服务容器都使用其自己的本地卷。如果您使用local 卷驱动程序,云计则没有一个容器可以共享此数据,但是某些卷驱动程序确实支持共享存储。适用于AWS的Docker和算核适用于Azure的Docker均使用Cloudstor插件支持持久存储。
以下示例nginx使心技用四个副本启动服务,每个副本使用一个称为的本地卷myvol2。
$ docker service cre术Date -d \
--replicas=4 \
--name devtest-service \
--mounoct source=myvol2,target=/app \
nginx:latest
使用docker skeervice ps devtest-service验证服务正在运行:
$ docker service pr教s devtest-service
ID NAME IMAGE NODE DESIRED STATE CURR程:ENT STATE ERROR PORTS
4d7oz1j85wwn devtest-service.1 nDoginx:latest moby Running Running 14 seconds ago
删除该ck服务,这将停止其所有任务:
$ docker service rm devtest-service
删除服er务不会删除该服务创建的任何卷。卷删除是一个单独的步骤。
服务的语法差异
该docker serv使用ice create命令不支持-vor--volume标志。将卷安装到服务的容器中时,必卷启须使用该--mount 标志。
Tags:
相关文章
IDC 2024年中国超融合存储系统市场:深信服第一
热点4月14日消息,IDC发布《中国软件定义存储 (SDS) 及超融合存储 (HCI) 系统市场季度跟踪报告,2024Q4》。报告显示:2024年全年超融合整体系统市场规模达到 153.70 亿元人民币,...
【热点】
阅读更多云计算开发:Python练习实例-求和
热点题目 :求1+2!+3!+...+20!的和。 程序分析 :此程序只是把累加变成了累乘。 程序源代码 : 方法一: 方法二: 以上实例输出结果为 :...
【热点】
阅读更多标签: 平安好医生 平安健康 管理式医疗 HMO
热点云梦级4月23日云梦级消息,4月23日,平安健康医疗科技有限公司(股票简称:平安好医生,01833.HK)公布2026年一季度业绩报告,实现稳健开局,盈利质量进一步跃升。 期内,公司录得总收入11.5...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://zhidao.baidu.com/index/?action=QUERY&word=必应蜘蛛池租用【tg:seogoogle987】,ofN
- https://blvdseafood.com/?s=必应蜘蛛池租用【tg:seogoogle987】lXZ
- https://www.impactpool.org/search/?type=79&q=必应蜘蛛池租用【tg:seogoogle987】qMZ
- https://www.nyif.com/catalogsearch/result/index/?f=sarbanesoxleyU&index=me_cms_pe&lit=20&mode=list&p=1&q=必应蜘蛛池租用【tg:seogoogle987】,D4T
- https://www.totolink.vn/search/必应蜘蛛池租用【tg:seogoogle987】,lUG
- https://www.woorden.org/spreekwoord.php?woord=必应蜘蛛池租用【tg:seogoogle987】,HB4
- https://www.umc.edu/search.aspx?ID=I4gnDKRS991MFcIDDzoYze4aWSAszAm7&q=必应蜘蛛池租用【tg:seogoogle987】,GuC
- https://wwwcp.umes.edu/search/必应蜘蛛池租用【tg:seogoogle987】,pJG
- https://www.klatreverden.no/search?q=必应蜘蛛池租用【tg:seogoogle987】,i6M
- https://www.roblox.com/discover/?cat=107&Keyword=必应蜘蛛池租用【tg:seogoogle987】,mdv
- https://www.zalora.sg/catalog/?cat=112&q=必应蜘蛛池租用【tg:seogoogle987】,da0
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=必应蜘蛛池租用【tg:seogoogle987】,GSy
- https://www.revere.org/search?action=SEARCH&q=必应蜘蛛池租用【tg:seogoogle987】,bAb
- https://www.tycoonstory.com/?s=必应蜘蛛池租用【tg:seogoogle987】,nxL
- https://www.youtube.com/results?search_query=必应蜘蛛池租用【tg:seogoogle987】,TWs
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=必应蜘蛛池租用【tg:seogoogle987】,mJ5
- https://www.tailoy.com.pe/catalogsearch/result/?q=必应蜘蛛池租用【tg:seogoogle987】,SwS
- https://www.yidian51.com/taobao/必应蜘蛛池租用【tg:seogoogle987】,rEF
- https://www.tarleton.edu/news/search/必应蜘蛛池租用【tg:seogoogle987】,CNI
- https://www.lneg.pt/en/?s=必应蜘蛛池租用【tg:seogoogle987】,Z2B
- https://www.pearson.com/en-us/search.html?aq=必应蜘蛛池租用【tg:seogoogle987】,AeA
- https://www.tombow.com/search/必应蜘蛛池租用【tg:seogoogle987】,XTc
- https://www.tcv.org.uk/search/必应蜘蛛池租用【tg:seogoogle987】,aks
- https://www.swecobelgium.be/?page=9&s=必应蜘蛛池租用【tg:seogoogle987】,Pj5
- https://www.tmtpost.com/search?q=必应蜘蛛池租用【tg:seogoogle987】,VFN
- https://www.sbaad.no/?s=必应蜘蛛池租用【tg:seogoogle987】,ieJ
- https://www.remit.co.jp/vi/?s=必应蜘蛛池租用【tg:seogoogle987】AQp
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=必应蜘蛛池租用【tg:seogoogle987】,CzO
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=必应蜘蛛池租用【tg:seogoogle987】,4sf
- https://www.otakuninjahero.com/en/search/必应蜘蛛池租用【tg:seogoogle987】,SES
- https://xn--lgernevedlystskoven-lxb.dk/search/必应蜘蛛池租用【tg:seogoogle987】,WiF
- https://www.wilsonart.com/catalogsearch/result/?action=CHECK&q=必应蜘蛛池租用【tg:seogoogle987】,2a6
- https://www.uctronics.com/catalogsearch/result/?q=必应蜘蛛池租用【tg:seogoogle987】,Ycx
- https://www.lindseymedicalsupply.com/search/必应蜘蛛池租用【tg:seogoogle987】,aLC
- https://www.vivaraise.fr/catalogsearch/result/?q=必应蜘蛛池租用【tg:seogoogle987】,k6B
- https://www.nctsn.org/search?cat=191&query=必应蜘蛛池租用【tg:seogoogle987】,hIB
- https://www.krisinformation.se/en/search?q=必应蜘蛛池租用【tg:seogoogle987】,DkP
- https://www.ussalabama.com/?action=CHECK&s=必应蜘蛛池租用【tg:seogoogle987】,dU9
- https://dict.naver.com/dict.search?dicQuery&query=必应蜘蛛池租用【tg:seogoogle987】wLW
- https://www.madebyoranges.com/nl/search/必应蜘蛛池租用【tg:seogoogle987】,ET3
- https://www.temu.com/search_result.html?search_key=必应蜘蛛池租用【tg:seogoogle987】Zjy
- https://www.vet-direct.com/search?cat=72&term=必应蜘蛛池租用【tg:seogoogle987】,WfI
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=必应蜘蛛池租用【tg:seogoogle987】,Z7z
- https://www.smarty.net/search?q=必应蜘蛛池租用【tg:seogoogle987】,5NV
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=必应蜘蛛池租用【tg:seogoogle987】,kia
- https://www.roberthalf.com/us/en/jobs/all/必应蜘蛛池租用【tg:seogoogle987】LAy
- https://www.nbm.org/?action=QUERY&s=必应蜘蛛池租用【tg:seogoogle987】,En6
- https://www.pmindia.gov.in/en/?s=必应蜘蛛池租用【tg:seogoogle987】,CrT
- https://www.teacherspayteachers.com/Browse/Search:必应蜘蛛池租用【tg:seogoogle987】,fbl
- https://www.scq.ubc.ca/?page=2&s=必应蜘蛛池租用【tg:seogoogle987】,rM2