您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker安装和使用插件
热点4062人已围观
简介...
插件作为 Docker 映像分发,可以托管在 Docker Hub 或私有注册表上。
要安装插件,请使用该docker plugin install命令云计,该命令从 Docker Hub 或您的私有注册表中提取插件,在必要时提示您授予权限或功能,并启用该插件。
要检查已安装插件的状态,请使用该docke算核r plugin ls命令。成功启动的插件在输出中列为已启用。
安装插件后,您可以将其用作另一个 Docker 操作的选项,例如创建卷。
在以下示例中,心技您安装sshfs插件,验证它是否已启用,并使用它来创建卷。
1.安装sshfs插件。
$ docker plugin install vieux/ss术Dhfs
Plugin "vieux/sshfs" is requesting the following privileges:
- network: [hostoc]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
vieuxke/sshfs
该插件请求 2 个权限:
它需要访问host网络。
它需要CAP_SYS_ADMIN允许插件运行mount命令的能力。
2.检查插件在r教输出中是否启用docker plugin ls。
3.使用插件创建卷。此示例将/remote主机上的目录安装1.2.3.4到名为sshvolume.
此程:卷现在可以安装到容器中。
$ docker volume create \
-d vieux/sshfs \
--name sshvolume \
-o [email protected]:/remote \
-o password=$(cat file_containing_password_for_remockte_host)
sshvolume
4.验证卷是否已成功创建。
$ docker volume ls
DRIVER NAME
vieux/sshfs sshervolume
5.启动一个使用该卷的容器sshvolume。
$ docker run --rm -v sshvolume:/data busybox ls /da安装ta
6.删除卷 sshvolume
docker volume rm sshvolume
sshvolume
要禁用插件,请使用该docker pl和使ugin disable命令。要完全删除它,请使用该docker plugin remove命令。
Tags:
相关文章
全球云基础设施支出 已连续6个季度同比增长超过20%
热点3月27日消息,据外媒报道,在生成式人工智能热潮的推动下,全球科技巨头和新兴厂商在数据中心方面在大力投资,云基础设施方面的支出也大幅增加,有消息称已连续多个季度保持超过20%的同比增长率。 有市场研究...
【热点】
阅读更多AI 安全测试揭示聊天机器人助长恐怖活动与网络犯罪
热点近期,OpenAI 与竞争对手 Anthropic 进行了一项安全测试,结果显示聊天机器人在面对危险请求时的表现令人担忧。测试发现,ChatGPT 的一个模型竟然提供了有关如何在体育场实施爆炸的详细说...
【热点】
阅读更多Facebook开发大会推新应用:着力发展电子商务和增强现实业务
热点新浪科技讯 北京时间6月3日早间消息,据报道,当地时间6月2日,美国社交网络巨头Facebook举办线上年度F8开发者大会,该公司当天发布了一系列新的开发者工具,其中包括面向企业用户的移动聊天功能。...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.mynextmove.org/find/search?s=谷歌maps群发程序|软件【tg:seogoogle987】,rJI
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌maps群发程序|软件【tg:seogoogle987】G4C
- https://www.southmeadows.co.uk/2019/07/?s=谷歌maps群发程序|软件【tg:seogoogle987】,mSo
- https://www.jusoen.com/addreng.asp?p1=谷歌maps群发程序|软件【tg:seogoogle987】rjl
- https://www.wellbees.com/catalogsearch/result/?action=CHECK&q=谷歌maps群发程序|软件【tg:seogoogle987】,iXg
- https://www.teamlab.art/?submit=谷歌maps群发程序|软件【tg:seogoogle987】,xUj
- https://www.lee.com/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,Onk
- https://www.navymwr.org/search/?query=谷歌maps群发程序|软件【tg:seogoogle987】,8wZ
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=谷歌maps群发程序|软件【tg:seogoogle987】,C52
- https://www.teacherspayteachers.com/Browse/Search:谷歌maps群发程序|软件【tg:seogoogle987】,PkK
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌maps群发程序|软件【tg:seogoogle987】IW7
- https://www.soccerbible.com/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,nMb
- https://hsmoa.com/search?query=谷歌maps群发程序|软件【tg:seogoogle987】6n2
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌maps群发程序|软件【tg:seogoogle987】,W4c
- https://www.varian.com/en-au/search?cat=113&search=谷歌maps群发程序|软件【tg:seogoogle987】,hRq
- https://www.zutari.com/search/谷歌maps群发程序|软件【tg:seogoogle987】,mxk
- https://www.flickr.com/photos/tags/谷歌maps群发程序|软件【tg:seogoogle987】8Jo
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌maps群发程序|软件【tg:seogoogle987】,bpI
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌maps群发程序|软件【tg:seogoogle987】,BeO
- https://www.mesec.cz/vyhledavani/?qs=谷歌maps群发程序|软件【tg:seogoogle987】,GIj
- https://www.impactpool.org/search/?type=79&q=谷歌maps群发程序|软件【tg:seogoogle987】pBd
- https://www.pearlstonecenter.org/search/谷歌maps群发程序|软件【tg:seogoogle987】,b1H
- https://www.miamiopenmri.com/?action=CHECK&s=谷歌maps群发程序|软件【tg:seogoogle987】,c0j
- https://www.thedp.com/page/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,XQZ
- https://www.lifesciencesweden.se/search?q=谷歌maps群发程序|软件【tg:seogoogle987】,fCM
- https://www.mygrandma.com/Items.aspx?search=谷歌maps群发程序|软件【tg:seogoogle987】,XLJ
- https://www.msrenewal.com/search/谷歌maps群发程序|软件【tg:seogoogle987】,tYG
- https://www.shopping.com/search.html?keyword=谷歌maps群发程序|软件【tg:seogoogle987】,h51
- https://www.u-bourgogne.fr/?cat=117&s=谷歌maps群发程序|软件【tg:seogoogle987】,ssz
- https://www.abbreviations.com/谷歌maps群发程序|软件【tg:seogoogle987】dgy
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌maps群发程序|软件【tg:seogoogle987】,M7h
- https://www.spoiledsweetboutique.com/search/谷歌maps群发程序|软件【tg:seogoogle987】,8OR
- https://www.temu.com/search_result.html?search_key=谷歌maps群发程序|软件【tg:seogoogle987】tuD
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌maps群发程序|软件【tg:seogoogle987】,aLC
- https://www.maigoo.com/search/?block=&q=谷歌maps群发程序|软件【tg:seogoogle987】,6yy
- https://www.lgnewsroom.com/search/谷歌maps群发程序|软件【tg:seogoogle987】,MqC
- https://www.pixiv.net/tags/谷歌maps群发程序|软件【tg:seogoogle987】,dnZ
- https://www.tcv.org.uk/search/谷歌maps群发程序|软件【tg:seogoogle987】,jnF
- https://www.televes.com/es/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,vmf
- https://www.vet-direct.com/search?cat=72&term=谷歌maps群发程序|软件【tg:seogoogle987】,i0y
- https://www.metaltix.com/?view=tours&filter=search&q=谷歌maps群发程序|软件【tg:seogoogle987】,K6c
- https://www.roberthalf.com/us/en/jobs/all/谷歌maps群发程序|软件【tg:seogoogle987】0TX
- https://www.lechzuers.com/de/search?cat=163&q=谷歌maps群发程序|软件【tg:seogoogle987】,jQQ
- https://www.roblox.com/discover/?cat=107&Keyword=谷歌maps群发程序|软件【tg:seogoogle987】,jVz
- https://www.valuecolleges.com/?action=QUERY&s=谷歌maps群发程序|软件【tg:seogoogle987】,X9V
- https://www.sic-info.org/en/?s=谷歌maps群发程序|软件【tg:seogoogle987】,203
- https://www.parl.ca/legisinfo/fr/projets-de-loi?parlsession=all&view=list&keywords=谷歌maps群发程序|软件【tg:seogoogle987】,NJK
- https://www.sbaad.no/?s=谷歌maps群发程序|软件【tg:seogoogle987】,FDH
- https://www.zalora.sg/catalog/?cat=112&q=谷歌maps群发程序|软件【tg:seogoogle987】,yw7
- https://www.pierreherme.com/catalogsearch/result/?q=谷歌maps群发程序|软件【tg:seogoogle987】,5jT