您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker安装和使用插件
热点0174人已围观
简介...
插件作为 Docker 映像分发,可以托管在 Docker Hub 或私有注册表上。
要安装插件,请使用该docker plugin install命令云计,该命令从 Docker Hub 或您的私有注册表中提取插件,在必要时提示您授予权限或功能,并启用该插件。
要检查已安装插件的状态,请使用该do算核cker plugin ls命令。成功启动的插件在输出中列为已启用。
安装插件后,您可以将其用作另一个 Docker 操作的选项,例如创建卷。
在以下示例中,心技您安装sshfs插件,验证它是否已启用,并使用它来创建卷。
1.安装sshfs插件。
$ docker plugin install vieux/sshf术Ds
Plugin "vieux/sshfs" is requesting the following privileges:
- network: [hostoc]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
vieux/skeshfs
该插件请求 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_remote_hockst)
sshvolume
4.验证卷是否已成功创建。
$ docker volume ls
DRIVER NAME
vieux/sshfs sshvolume
5er.启动一个使用该卷的容器sshvolume。
$ docker run --rm -v sshvolume:/data busybox ls /data
6安装.删除卷 sshvolume
docker volume rm sshvolume
sshvolume
要禁用插件,请使用该docker plugin disab和使le命令。要完全删除它,请使用该docker plugin remove命令。
Tags:
相关文章
标签: 特斯拉 Model Y 加州 电动汽车
热点云梦级1月23日云梦级消息,据彭博社报道,当地时间 1 月 22 日,美国加州新车经销商协会(California New Car Dealers Association)发布了(基于 Experia...
【热点】
阅读更多云计算开发:Python练习实例-使用列表[:]
热点题目 :将一个列表的数据复制到另一个列表中。 程序分析 :使用列表[:]。 程序源代码 : 以上实例输出结果为:...
【热点】
阅读更多标签: 复星医药 复迈宁 斯鲁利单抗 奕凯达
热点云梦级3月24日云梦级消息,3月24日,复星医药(600196.SH;02196.HK)公布2025年度经营业绩。复星医药以创新研发突破与全球化体系升级为双引擎,实现营业收入人民币416.62亿元,同...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.selfsufficientish.com/main/?s=谷歌快排【tg:seogoogle987】,ONo
- https://www.sebson.de/en/search?query=谷歌快排【tg:seogoogle987】,Z8B
- https://www.kaliastyle.com/catalogsearch/result/?q=GOOGLE谷歌快排【tg:seogoogle987】,Cw0
- https://www.sogou.com/web?query=谷歌快排【tg:seogoogle987】,Qzd
- https://www.tullygroup.us/?ID=hbkq8jFjrQlVRrwzEmvoUJJAY4e1Lfo5&s=谷歌快排【tg:seogoogle987】,a6J
- https://www.yidian51.com/taobao/谷歌快排【tg:seogoogle987】,KVw
- https://www.smarty.net/search?q=谷歌快排【tg:seogoogle987】,b2B
- https://www.maafushidive.com?collections?vendors?q=谷歌快排【tg:seogoogle987】,aiP
- https://www.totolink.vn/search/谷歌快排【tg:seogoogle987】,j04
- https://www.sensorshop24.de/catalogsearch/result/index/?type=132&q=谷歌快排【tg:seogoogle987】,fK9
- https://www.teamlab.art/pt/?submit=谷歌快排【tg:seogoogle987】,ncg
- https://www.qylaws.com/search/谷歌快排【tg:seogoogle987】,LBb
- https://www.qidulp.com/search?query=谷歌快排【tg:seogoogle987】,C9N
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌快排【tg:seogoogle987】,2Xd
- https://www.ucycle.com/search/=谷歌快排【tg:seogoogle987】,v98
- https://www.kaskus.co.id/search?q=谷歌快排【tg:seogoogle987】,9ID
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌快排【tg:seogoogle987】,c49
- https://www.maine.gov/pfr/professionallicensing/search/node?keys=谷歌快排【tg:seogoogle987】,DKL
- https://www.localfootdoc.com/?s=谷歌快排【tg:seogoogle987】,5tV
- https://www.pinkpanda.ro/magazin/ingrijirea-tenului?page=87&q=谷歌快排【tg:seogoogle987】,bC7
- https://www.losgatoschamber.com/list/search?action=SEARCH&q=谷歌快排【tg:seogoogle987】,atf
- https://www.springfieldlibrary.org/?s=谷歌快排【tg:seogoogle987】,WCt
- https://www.sonepar.ch/fr/search?q=谷歌快排【tg:seogoogle987】,0ir
- https://www.unclefossil.com/search/谷歌快排【tg:seogoogle987】,sfd
- https://www.navymwr.org/search/?query=谷歌快排【tg:seogoogle987】,cGY
- https://wwwcp.umes.edu/search/谷歌快排【tg:seogoogle987】,pDY
- https://www.terramania.nl/catalogsearch/result/index/?q=谷歌快排【tg:seogoogle987】,7us
- https://www.goodreads.com/quotes/tag/谷歌快排【tg:seogoogle987】PUU
- https://www.oprny.com/search.php?search_query=谷歌快排【tg:seogoogle987】,jM9
- https://www.shacknews.com/editorial-search?q=谷歌快排【tg:seogoogle987】,Fbr
- https://www.kuaikanmanhua.com/sou/谷歌快排【tg:seogoogle987】,CIO
- https://www.youm7.com/Home/Search?allwords=谷歌快排【tg:seogoogle987】,p6u
- https://www.stonerealestate.com.au/?cat=100&s=谷歌快排【tg:seogoogle987】,1KR
- https://search.danawa.com/dsearch.php?query=谷歌快排【tg:seogoogle987】PE8
- https://www.thedp.com/page/search?q=谷歌快排【tg:seogoogle987】,yy6
- https://www.wellbees.com/index.php/catalogsearch/result/index/?q=谷歌快排【tg:seogoogle987】,wn2
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=谷歌快排【tg:seogoogle987】,aTm
- https://www.ntv.co.jp/3min/search/?action=QUERY&q=谷歌快排【tg:seogoogle987】,mCR
- https://www.sdcard.org/ja/?s=谷歌快排【tg:seogoogle987】,8TG
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌快排【tg:seogoogle987】,RKT
- https://www.southmeadows.co.uk/2019/07/?s=谷歌快排【tg:seogoogle987】,v7u
- https://www.seforall.org/search?keywords=谷歌快排【tg:seogoogle987】,e3V
- https://www.mygrandma.com/Items.aspx?search=谷歌快排【tg:seogoogle987】,0ti
- https://www.kingston.gov.uk/site-search/results/?q=谷歌快排【tg:seogoogle987】,7nC
- https://www.maigoo.com/search/?block=&q=谷歌快排【tg:seogoogle987】,TPR
- https://www.symatoys.com/search.html?ID=UyMD6aO58bPrJvQAB1I0N69KzJBZeNPC&keyword=谷歌快排【tg:seogoogle987】,pmM
- https://m.shoppinghow.kakao.com/m/search/q/谷歌快排【tg:seogoogle987】i9i
- https://www.swanagerailway.co.uk/search?q=谷歌快排【tg:seogoogle987】,OIZ
- https://www.yr.no/en/search?q=谷歌快排【tg:seogoogle987】,KxZ
- https://www.soccerbible.com/search?q=谷歌快排【tg:seogoogle987】,Wpx