您现在的位置是:热点 >>正文
云计算核心技术Docker教程:注册服务器开放外部访问
热点7890人已围观
简介...
运行只能访问的注册表的localhost用处有限。为了使外部主机可以访问您的注册表,您必须首先使用 TLS 保护它。
获得证书
这云计些示例假设如下:
您的注册表 URL 是https://myregistry.domain.com/.
您的 DNS、路由和防火墙设算核置允许通过端口 443 访问注册表主机。
您已从证书颁发机构 (CA) 获得证书。
如果您已经获得了中间证书,请参阅 使用中间证书。
1.创建一心技个certs目录。
$ mkdir -p certs
将.crt和.key文件从 CA 复制到certs目录中。以下步骤假定文件被命名dom术Dain.crt为 domain.key.
2.如果注册表当前正在运行,请停止它。
$ docker container stop regisoctry
3.重新启动注册表,指示它使用 TLS 证书。此命令将certs/目录绑定挂载到容器中/certs/,并设置环境变量,告诉容ke器在哪里可以找到domain.crt anddomain.key文件。注册表在默认 HTTPS 端口 443 上运行。
$ docker runr教 -d \
--restart=always \
--name registry \
-v "$(pwd)"/certs:/certs \
-e RE程:GISTRY_HTTP_ADDR=0.0.0.0:443 \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/ce注册rts/domain.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
-p 4服务43:443 \
registry:2
4.Docker 客户端现在可以使用其外部地址从您的注册表中提取和推送。以下命令演示了这一点:
$器开 docker pull ubuntu:16.04
$ docker tag ubuntu:16.04 myregistry.domai放外n.com/my-ubuntu
$ docker push myregistry.domain.com/my-ubuntu
$ doc部访ker pull myregistry.domain.com/my-ubuntu
Tags:
相关文章
标签: 埃森哲 AI成本 Token消耗 PDF转PPT
热点云梦级6月26日云梦级消息,据科技媒体 404Media 报道,一分外泄的咨询公司埃森哲(Accenture)内部录音显示,指出企业正面临 AI 使用成本失控问题。 根据录音内容,埃森哲在内部讨论中承...
【热点】
阅读更多消息称“通义”应用团队从阿里云分拆,并入阿里智能信息事业群
热点12 月 18 日消息,《智能涌现》今日援引“多个独立信源”消息称,阿里旗下的 AI 应用“通义”近期从阿里云分拆,并入阿里智能信息事业群。 有知情人士称,此次调整包括通义 To C 方向的产品经理,...
【热点】
阅读更多Apache Doris4.0正式发布:引领 AI 与搜索技术的新潮流
热点近日,Apache Doris4.0版本正式发布,为企业级数据分析平台注入了新的活力。本次更新着眼于 “AI 驱动、搜索增强和离线提效” 三大方向,带来了向量索引和 AI 函数等一系列关键特性,旨在提...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.selfsufficientish.com/main/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,n1d
- https://www.pickett.co.uk/collections/vendors?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,vVO
- https://www.pmindia.gov.in/en/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,RIW
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Hqo
- https://www.varian.com/en-au/search?cat=113&search=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,rf0
- https://www.lechzuers.com/de/search?cat=163&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,YJx
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】5Qj
- https://www.u-bourgogne.fr/?cat=117&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,gBG
- https://www.maigoo.com/search/?block=&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,QW6
- https://www.qylaws.com/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,kXg
- https://www.ng-slo.si/si/iskanje?cat=114&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,GTp
- https://www.universal-music.co.jp/?ID=1sIcckCTeBS8FjzCshAW9w53s8gr691o&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,zwk
- https://www.ushmm.org/search/results.php?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,2Wf
- https://www.kaskus.co.id/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,A1t
- https://www.scivee.tv/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,nn4
- https://www.reallywildbirdfood.co.uk/store/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Zor
- https://www.ucycle.com/search/=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,kxC
- https://www.le-trend.com/en/search/=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,mIT
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】Xpo
- https://www.target.com/s?searchTerm=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,yWY
- https://www.remit.co.jp/en/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,ZlJ
- https://m.shoppinghow.kakao.com/m/search/q/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】hHp
- https://www.goodreads.com/quotes/tag/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】xHo
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】hJD
- https://www.mingwai.edu.hk/?langzh-hant&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,0Zl
- https://www.laoairlines.com/?action=QUERY&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,KTK
- https://www.monroecounty.gov/search/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,oSd
- https://www.kores.com/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,06e
- https://nicolazzi.it/en/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Mit
- https://www.resilienz-akademie.com/?cat=71&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,ExH
- https://www.seforall.org/search?keywords=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,eU3
- https://www.oikos-tecnics.com/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,SYL
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,5oI
- https://www.klatreverden.no/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,pV1
- https://www.wmfe.org/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,9JE
- https://www.therapeuticassociates.com/?cat=5&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,lQA
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,1Eg
- https://www.zutari.com/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,1IE
- https://www.youtube.com/hashtag/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,yWN
- https://www.voices.com/talents/search?keywords=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,jTV
- https://www2.ual.es/ProyectoLates/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,QIx
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】jNH
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,sOP
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,VwU
- https://www.jusoen.com/addreng.asp?p1=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】7KL
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,2wg
- https://www.tiktok.com/tag/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,RAo
- https://www.unclefossil.com/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.madebyoranges.com/nl/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,uvl
- https://www.abbreviations.com/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】NU7