您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker使用卷启动服务
热点645747人已围观
简介...
启动服务并定义卷时,每个服务容器都使用其自己的本地卷。如果您使用local 卷驱动程序,云计则没有一个容器可以共享此数据,但是某些卷驱动程序确实支持共享存储。适用于AWS的Docker和适算核用于Azure的Docker均使用Cloudstor插件支持持久存储。
以下示例nginx心技使用四个副本启动服务,每个副本使用一个称为的本地卷myvol2。
$ docker service c术Dreate -d \
--replicas=4 \
--name devtest-service \
--mouocnt source=myvol2,target=/app \
nginx:latest
使用dockeker service ps devtest-service验证服务正在运行:
$ docker servr教ice ps devtest-service
ID NAME IMAGE NODE DESIRED STATE C程:URRENT STATE ERROR PORTS
4d7oz1j85wwn devtest-servicDoe.1 nginx:latest moby Running Running 14 seconds ago
删ck除该服务,这将停止其所有任务:
$ docker service rm devtest-servicere
删除服务不会删除该服务创建的任何卷。卷删除是一个单独的步骤。
服务的语法差异
该dock使用er service create命令不支持-vor--volume标志。将卷安装到服务的容器卷启中时,必须使用该--mount 标志。
Tags:
相关文章
这款工具可以把Kubernetes集群打包成一个镜像
热点sealer[ˈsiːlər]是一款分布式应用打包交付运行的解决方案,通过把分布式应用及其数据库中间件等依赖一起打包以解决复杂应用的交付问题。 sealer 构建出来的产物我们称之为集群镜像, 集群镜...
【热点】
阅读更多标签: 移动云
热点5月8日,中国移动2026移动云大会主论坛在苏州召开,中国移动董事长陈忠岳发表了题为《移动云 智能新空间》的主旨演讲。 今年以来,智能体全网火爆,智能终端加速普及,AI正成为新的生产力工具,重塑人类生...
【热点】
阅读更多标签: 特斯拉 Robotaxi 马斯克 Waymo
热点云梦级2月28日云梦级消息,据外媒报道,近日,马斯克的“画饼”言论再遭打脸。此前,马斯克曾多次官宣:“特斯拉距离在加州推出 Robotaxi 无人驾驶出租车服务仅剩数月”。 然而加州机动车辆管理局记录...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌搜索留痕【tg:seogoogle987】,qXD
- https://www.wellbees.com/index.php/catalogsearch/result/index/?q=谷歌搜索留痕【tg:seogoogle987】,CAw
- https://www.dba.dk/soeg/?soeg=谷歌搜索留痕【tg:seogoogle987】Vky
- https://www.manga-news.com/index.php/recherche/?q=谷歌搜索留痕【tg:seogoogle987】,cLg
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌搜索留痕【tg:seogoogle987】,0G0
- https://www.shopping.com/search.html?keyword=谷歌搜索留痕【tg:seogoogle987】,Bwd
- https://www.zisha.com/shop/list.shtml?wap_keyword=谷歌搜索留痕【tg:seogoogle987】,cIU
- https://www.remit.co.jp/vi/?s=谷歌搜索留痕【tg:seogoogle987】Jac
- https://www.jusoen.com/addreng.asp?p1=谷歌搜索留痕【tg:seogoogle987】I5C
- https://www.abbreviations.com/谷歌搜索留痕【tg:seogoogle987】HWl
- https://jihoon471.cafe24.com/product/search.html?banner_action=&keyword=谷歌搜索留痕【tg:seogoogle987】jce
- https://www.skicheck.at/en/?action=CHECK&s=谷歌搜索留痕【tg:seogoogle987】,IHR
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌搜索留痕【tg:seogoogle987】,Lpr
- https://www.sdcard.org/ja/?s=谷歌搜索留痕【tg:seogoogle987】,h2J
- https://www.samen-maier.at/search/谷歌搜索留痕【tg:seogoogle987】,vYx
- https://www.sweat.com/collections/vendors?q=谷歌搜索留痕【tg:seogoogle987】,7ay
- https://www.tmtpost.com/search?q=谷歌搜索留痕【tg:seogoogle987】,xqr
- https://www.krisinformation.se/en/search?q=谷歌搜索留痕【tg:seogoogle987】,LfL
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=谷歌搜索留痕【tg:seogoogle987】,QZU
- https://www.tcv.org.uk/search/谷歌搜索留痕【tg:seogoogle987】,sQt
- https://www.oprny.com/search.php?search_query=谷歌搜索留痕【tg:seogoogle987】,uYV
- https://www.smics.com/tc/site/search?token=谷歌搜索留痕【tg:seogoogle987】,oys
- https://www.pixiv.net/tags/谷歌搜索留痕【tg:seogoogle987】,Haf
- https://www.unclefossil.com/search/谷歌搜索留痕【tg:seogoogle987】,8iU
- https://www.uckfieldtc.gov.uk/?s=谷歌搜索留痕【tg:seogoogle987】,bhs
- https://www.seforall.org/search?keywords=谷歌搜索留痕【tg:seogoogle987】,Qnu
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌搜索留痕【tg:seogoogle987】,X0b
- https://www.l-and-b.jp/?page=1&s=谷歌搜索留痕【tg:seogoogle987】,kla
- https://www.lezhin.com/ko/tags/谷歌搜索留痕【tg:seogoogle987】,rIj
- https://www.teamlab.art/es/?submit=谷歌搜索留痕【tg:seogoogle987】,Ukl
- https://www.youtube.com/results?search_query=谷歌搜索留痕【tg:seogoogle987】,jBE
- https://www.olx.ba/pretraga?trazilica=谷歌搜索留痕【tg:seogoogle987】,HR4
- https://www.nissin.com/jp/search/?cat=105&q=谷歌搜索留痕【tg:seogoogle987】,buh
- https://www.military-history.org/?s=谷歌搜索留痕【tg:seogoogle987】,E06
- https://www.wou.edu.my/?s=谷歌搜索留痕【tg:seogoogle987】,YEn
- https://m.shoppinghow.kakao.com/m/search/q/谷歌搜索留痕【tg:seogoogle987】4XZ
- https://www.vet-direct.com/search?cat=72&term=谷歌搜索留痕【tg:seogoogle987】,JpE
- https://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=oldrel&loc=nojs&Word=谷歌搜索留痕【tg:seogoogle987】,DeE
- https://www.rotherham.gov.uk/site-search/results/?q=谷歌搜索留痕【tg:seogoogle987】,8qO
- https://www.livehindustan.com/tags/谷歌搜索留痕【tg:seogoogle987】,YNq
- https://www.qwant.com/?q=谷歌搜索留痕【tg:seogoogle987】,xu0
- https://www.maigoo.com/search/?block=&q=谷歌搜索留痕【tg:seogoogle987】,PyY
- https://www.jusoen.com/addreng.asp?p1=谷歌搜索留痕【tg:seogoogle987】CYI
- https://www.roberthalf.com/us/en/jobs/all/谷歌搜索留痕【tg:seogoogle987】jp9
- https://www.spicebar.de/catalogsearch/result/?q=谷歌搜索留痕【tg:seogoogle987】,evc
- https://www.msrenewal.com/search/谷歌搜索留痕【tg:seogoogle987】,ST1
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌搜索留痕【tg:seogoogle987】,Az5
- https://www.supersauna.de/catalogsearch/result/?q=谷歌搜索留痕【tg:seogoogle987】,W2n
- https://www.southmeadows.co.uk/2019/07/?s=谷歌搜索留痕【tg:seogoogle987】,kVb
- https://www.routesonline.com/search/?query=谷歌搜索留痕【tg:seogoogle987】,iMP