您现在的位置是:热点 >>正文
云计算核心技术Docker教程:注册服务器开放外部访问
热点9560人已围观
简介...
运行只能访问的注册表的localhost用处有限。为了使外部主机可以访问您的注册表,您必须首先使用 TLS 保护它。
获得证书
这云计些示例假设如下:
您的注册表 URL 是https://myregistry.domain.com/.
您的 DNS、路由和防火墙算核设置允许通过端口 443 访问注册表主机。
您已从证书颁发机构 (CA) 获得证书。
如果您已经获得了中间证书,请参阅 使用中间证书。
1.创建一心技个certs目录。
$ mkdir -p certs
将.crt和.key文件从 CA 复制到certs目录中。以下步骤假定文件被命名术Ddomain.crt为 domain.key.
2.如果注册表当前正在运行,请停止它。
$ docker container stop regocistry
3.重新启动注册表,指示它使用 TLS 证书。此命令将certs/目录绑定挂载到容器中/certs/,并设置环境变量,告诉容ke器在哪里可以找到domain.crt anddomain.key文件。注册表在默认 HTTPS 端口 443 上运行。
$ docker rur教n -d \
--restart=always \
--name registry \
-v "$(pwd)"/certs:/certs \
-程:e REGISTRY_HTTP_ADDR=0.0.0.0:443 \
-e REGISTRY_HTTP_TLS_CERTIFICATE注册=/certs/domain.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key服务 \
-p 443:443 \
registry:2
4.Docker 客户端现在可以使用其外部地址从您的注册表中提取和推送。以下命令演示了这一器开点:
$ docker pull ubuntu:16.04
$ docker tag ubuntu:16.04 myregistry.domain.放外com/my-ubuntu
$ docker push myregistry.domain.com/my-ubuntu
$ docker pu部访ll myregistry.domain.com/my-ubuntu
Tags:
相关文章
标签: Meta RealityLabs VR 人工智能
热点云梦级3月26日云梦级消息,据外媒 The Verge 报道,Meta 正在推进新一轮裁员,主要涉及公司多个核心部门,包括招聘、社交媒体、销售团队,以及负责 VR 与智能眼镜研发的 Reality L...
【热点】
阅读更多苹果居然把耳机卖到了四千多?来看看这些同类产品,最低仅799
热点苹果昨天悄悄在官网上架了AirPods Max头戴式降噪耳机,售价4399,好家伙,一款产品直接把我这整个双12的预算cover掉。相信大多数理性的消费者都不会把这款产品作为首选目标,不过拥有一幅头戴...
【热点】
阅读更多标签: 山金国际 黄金生产商 中信证券 港股IPO
热点云梦级2月12日云梦级消息,据港交所披露,2025年9月24日,山金国际黄金股份有限公司(以下简称“山金国际”或“公司”)递交上市申请,中信证券、中金公司、瑞银集团为联席保荐人。 山金国际是一家黄金生...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.lifesciencesweden.se/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,HHQ
- https://www.paulaschoice.hk/zh_hant/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,IpV
- https://www.mesec.cz/vyhledavani/?qs=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Be4
- https://www.zutari.com/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,EzM
- https://www.terramania.nl/catalogsearch/result/index/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,I9a
- https://search.danawa.com/dsearch.php?query=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】WyJ
- https://www.shacknews.com/editorial-search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Dqb
- https://www.impactpool.org/search/?type=79&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】ItN
- https://www.rookwinkel.nl/catalogsearch/result/index/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,IZR
- https://www.nslcleaders.org/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,eOz
- https://www.abbreviations.com/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】RZX
- https://www.routesonline.com/search/?query=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,DSg
- https://www.thedp.com/page/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,uWA
- https://www.vietnamconsulate-sf.org/?action=CHECK&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,pbH
- https://www.safetv.go.kr/base/search/view?searchWord=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】She
- https://www.nytimes.com/search?dropmab=true&query=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Nzv
- https://www.lneg.pt/?cat=140&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,n0g
- https://yscc1986.net/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】eq6
- https://www.sweat.com/collections/vendors?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,WCX
- https://www.uckfieldtc.gov.uk/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,n0h
- https://www.target.com/s?searchTerm=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,ysi
- https://www.ushmm.org/search/results.php?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,c4U
- https://www.swanagerailway.co.uk/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,zIO
- https://www.jusoen.com/addreng.asp?p1=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】j37
- https://www.vivaraise.fr/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,CSM
- https://www.tombow.com/en/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,T2M
- https://www.jusoen.com/addreng.asp?p1=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】UCZ
- https://search.danawa.com/dsearch.php?query=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】mpC
- https://www.londontheatredirect.com/search/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,vwN
- https://www.udc.co.uk/index.php?route=product/search&sort=p.price&order=DESC&tag=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,tJB
- https://www.televes.com/es/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,CIr
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,sJK
- https://www.zisha.com/shop/list.shtml?wap_keyword=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Ck3
- https://www.sonepar.ch/fr/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,V7Y
- https://www.teamlab.art/es/?submit=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,val
- https://www.remit.co.jp/vi/?s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,mAS
- https://www.klatreverden.no/search?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Bo0
- https://www.openstreetmap.org/search?query=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Z2z
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,n6r
- https://www.varian.com/en-au/search?cat=113&search=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,xJL
- https://www.youm7.com/Home/Search?allwords=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,rOk
- https://www.woorden.org/spreekwoord.php?woord=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,ObM
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,qJk
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】sNx
- https://www.spicebar.de/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,8MO
- https://www.vfw.org/search-results?q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,Vbh
- https://www.lezhin.com/ko/tags/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,vUC
- https://www.zalora.sg/catalog/?cat=112&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,A1M
- https://www.goodreads.com/quotes/tag/谷歌霸屏24小时见效-实现思路【tg:seogoogle987】R6A
- https://www.so.com/s?ie=utf-8&src=360sou_home&_re=0&q=谷歌霸屏24小时见效-实现思路【tg:seogoogle987】,6Mh