您现在的位置是:热点 >>正文
云计算核心技术Docker教程:部署注册服务器
热点016299人已围观
简介...
在部署注册表之前,您需要在主机上安装 Docker。注册表是registry镜像的一个实例,在 Docker 中运行。
本主题提供有关部署和配置注册表的云计基本信息。
运行本地注册表
使用如下命令启动注册表容器:
$ docker run -d -p 5000:5000 --restart=always --name re算核gistry registry:2
注册表现在可以使用了。
将镜像从 Docker Hub 复制到您的注册表
您可以从 Docker Hub 中拉取镜像并将其推送到您的心技注册表。以下示例ubuntu:16.04从 Docker Hub 中提取映像并将其重新标记为my-ubuntu,然后将其推送到本地注册表。最后,在 本地删除术D和镜像,并 ubuntu:16.04从本地注册表中拉取镜像。my-ubuntumy-ubuntu
1.ubuntu:16.04从 Docker Hub拉取镜像。
$oc docker pull ubuntu:16.04
2.将图像标记为localhost:5000/my-ubuntu. 这会为现有图像创建一个附加标签。当标签的ke第一部分是主机名和端口时,Docker 在推送时将其解释为注册表的位置。
$ docker tag ubuntu:16.04 localhost:5000/my-r教ubuntu
3.将映像推送到运行在以下位置的本地注册表localhost:5000:
$ docker push localhost:5000/my-ubunt程:u
4.删除本地缓存ubuntu:16.04和localhost:5000/my-ubuntu 图像,以便您可以测试从注册表中提取图像。这不会localh部署ost:5000/my-ubuntu从您的注册表中删除图像。
$ docker image remove ubuntu:16.04
$ docker image remov注册e localhost:5000/my-ubuntu
5.localhost:5000/my-ubuntu从本地注册表中提取图像。
$ docker pull服务 localhost:5000/my-ubuntu
停止本地注册表
要停止注册表,请使用docker container stop与任何其他容器相同的命令。
$ doc云计ker container stop registry
要移除容器,请使用docker container rm.
$ docker container stop r算核egistry && docker container rm -v registry
Tags:
相关文章
夏威夷大学全力推动人工智能系统化发展
热点近日,夏威夷大学(University of Hawaiʻi)启动了一项全面的系统化人工智能(AI)发展计划,旨在成为这一领域的领军者。大学校长温迪・亨塞尔(Wendy Hensel)在 8 月 21...
【热点】
阅读更多标签: 禾赛科技 激光雷达 ADAS 机器人激光雷达
热点云梦级5月19日云梦级消息,5 月 19 日,禾赛科技(NASDAQ: HSAI; HKEX: 2525)公布了 2026 年第一季度未经审计的财务数据。本季度,禾赛实现营收 6.8 亿元人民币,连续...
【热点】
阅读更多AMD与OpenAI联手,或将打破英伟达在AI芯片市场的垄断
热点近日,AMD 与 OpenAI 达成了一项重要的合作协议,双方将携手推动 AI 硬件生态的变革。这一战略性的合作不仅意味着 AMD 将成为 AI 领域的潜在新力量,也让投资者对 AMD 的未来充满期待...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.nissin.com/jp/search/?cat=105&q=谷歌站群软件【tg:seogoogle987】,0sv
- https://www.pacific-lifestyle.co.uk/search?sort=alphabetical&term=谷歌站群软件【tg:seogoogle987】,15f
- https://www.vfw.org/search-results?q=谷歌站群软件【tg:seogoogle987】,xnW
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌站群软件【tg:seogoogle987】,d7J
- https://www.pixiv.net/tags/谷歌站群软件【tg:seogoogle987】,WOG
- https://www.jusoen.com/addreng.asp?p1=谷歌站群软件【tg:seogoogle987】x99
- https://hsmoa.com/search?query=谷歌站群软件【tg:seogoogle987】JIC
- https://www.universal-music.co.jp/search/?q=谷歌站群软件【tg:seogoogle987】,aNK
- https://www.monroecounty.gov/search/?q=谷歌站群软件【tg:seogoogle987】,H3I
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=谷歌站群软件【tg:seogoogle987】,JfU
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌站群软件【tg:seogoogle987】4v7
- https://www.oprny.com/search.php?search_query=谷歌站群软件【tg:seogoogle987】,mYI
- https://www.laoairlines.com/?action=QUERY&s=谷歌站群软件【tg:seogoogle987】,BXe
- https://www.synonyms.com/antonyms/谷歌站群软件【tg:seogoogle987】,BCN
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌站群软件【tg:seogoogle987】,rQk
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌站群软件【tg:seogoogle987】,EPf
- https://www.youtube.com/hashtag/谷歌站群软件【tg:seogoogle987】,a8K
- https://www.tombow.com/en/search/谷歌站群软件【tg:seogoogle987】,zjV
- https://www.flickr.com/photos/tags/谷歌站群软件【tg:seogoogle987】tXn
- https://www.unclefossil.com/search/谷歌站群软件【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌站群软件【tg:seogoogle987】,GDe
- https://www.posten-portal.de/search?query=谷歌站群软件【tg:seogoogle987】,0AL
- https://www.ussalabama.com/?action=CHECK&s=谷歌站群软件【tg:seogoogle987】,H6V
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌站群软件【tg:seogoogle987】,Igh
- https://www.nextavenue.org/?action=QUERY&s=谷歌站群软件【tg:seogoogle987】,YKf
- https://www.roberthalf.com/us/en/jobs/all/谷歌站群软件【tg:seogoogle987】075
- https://www.lee.com/search?q=谷歌站群软件【tg:seogoogle987】,L2H
- https://www.roblox.com/discover/?cat=107&Keyword=谷歌站群软件【tg:seogoogle987】,Rrv
- https://www.whiterock2008.com.tw/search?q=谷歌站群软件【tg:seogoogle987】,jdN
- https://www.localfootdoc.com/?s=谷歌站群软件【tg:seogoogle987】,tF4
- https://www.kaliastyle.com/catalogsearch/result/?q=GOOGLE谷歌站群软件【tg:seogoogle987】,HwP
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=谷歌站群软件【tg:seogoogle987】,q4g
- https://www.maine.gov/pfr/professionallicensing/search/node?keys=谷歌站群软件【tg:seogoogle987】,oLQ
- https://www.swecobelgium.be/?page=9&s=谷歌站群软件【tg:seogoogle987】,CJw
- https://www.target.com/s?searchTerm=谷歌站群软件【tg:seogoogle987】,eKw
- https://www.remit.co.jp/vi/?s=谷歌站群软件【tg:seogoogle987】,Xi3
- https://www.livehindustan.com/tags/谷歌站群软件【tg:seogoogle987】,d7v
- https://www.rea.govt.nz/search?searchterm=谷歌站群软件【tg:seogoogle987】,FYz
- https://www.vivaraise.fr/catalogsearch/result/?q=谷歌站群软件【tg:seogoogle987】,TRI
- https://www.world-architects.com/en/search?term=谷歌站群软件【tg:seogoogle987】,TTi
- https://www.lindseymedicalsupply.com/search/谷歌站群软件【tg:seogoogle987】,wXq
- https://store.line.me/search/sticker/ja?q=谷歌站群软件【tg:seogoogle987】ZyQ
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌站群软件【tg:seogoogle987】,VPZ
- https://www.londontheatredirect.com/search/谷歌站群软件【tg:seogoogle987】,XEH
- https://www.jusoen.com/addreng.asp?p1=谷歌站群软件【tg:seogoogle987】yrU
- https://www.normani.de/search?q=谷歌站群软件【tg:seogoogle987】,55x
- https://www.varian.com/en-au/search?cat=113&search=谷歌站群软件【tg:seogoogle987】,ju5
- https://www.tarleton.edu/news/search/谷歌站群软件【tg:seogoogle987】,cDu
- https://www.swanagerailway.co.uk/search?q=谷歌站群软件【tg:seogoogle987】,yAP
- https://www.lneg.pt/en/?s=谷歌站群软件【tg:seogoogle987】,FU3