当前位置: 首页 > news >正文

深圳做网站的公新东方考研培训机构官网

深圳做网站的公,新东方考研培训机构官网,门户网站界面设计,哈尔滨寸金网站建设公司口碑纯手工在内网部署一个Docker私有仓库 下载Docker仓库的镜像上传仓库的镜像导入仓库的镜像启动仓库镜像配置客户端的Docker上传镜像到本地仓库从本地仓库拉取镜像 下载Docker仓库的镜像 这个镜像不太好找,有需要的可以从下面的地址中下载。 通过百度网盘分享的文件…

纯手工在内网部署一个Docker私有仓库

  • 下载Docker仓库的镜像
  • 上传仓库的镜像
  • 导入仓库的镜像
  • 启动仓库镜像
  • 配置客户端的Docker
  • 上传镜像到本地仓库
  • 从本地仓库拉取镜像

下载Docker仓库的镜像

这个镜像不太好找,有需要的可以从下面的地址中下载。

通过百度网盘分享的文件:registry_2_6.tar
链接:https://pan.baidu.com/s/1dDnsb9Tu3rSfgZDatlpaqw 
提取码:1111

上传仓库的镜像

root@rz-133-jiaofu-demo:~# rz
rz waiting to receive.
root@rz-133-jiaofu-demo:~# ls registry_2_6.tar 
registry_2_6.tar

导入仓库的镜像

root@rz-133-jiaofu-demo:~# docker image load -i registry_2_6.tar 
7444ea29e45e: Loading layer [==================================================>]  4.671MB/4.671MB
e414ec287de6: Loading layer [==================================================>]   1.56MB/1.56MB
cbc119ee9885: Loading layer [==================================================>]  22.79MB/22.79MB
169631782bfc: Loading layer [==================================================>]  3.584kB/3.584kB
9c158fac7d21: Loading layer [==================================================>]  2.048kB/2.048kB
Loaded image: registry:2.6root@rz-133-jiaofu-demo:~# docker images
REPOSITORY     TAG            IMAGE ID       CREATED             SIZE
registry       2.6            16442cfd83a0   About an hour ago   28.5MB
root@rz-133-jiaofu-demo:~# 

启动仓库镜像

root@rz-133-jiaofu-demo:~/docker_registry# pwd
/root/docker_registry
root@rz-133-jiaofu-demo:~/docker_registry# tree
.
└── data2 directories, 0 files
root@rz-133-jiaofu-demo:~/docker_registry# docker run -d \
> --restart=always \
> --name registry \
> -p 5000:5000 \
> -v ./data:/var/lib/registry \
> registry:2.6
2d2db11322ba0f3adc67cf5e710382843142cf4af87d12b2231d017b63f37a9f
root@rz-133-jiaofu-demo:~/docker_registry# docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS                                       NAMES
2d2db11322ba   registry:2.6   "/entrypoint.sh /etc…"   14 seconds ago   Up 14 seconds   0.0.0.0:5000->5000/tcp, :::5000->5000/tcp   registry
root@rz-133-jiaofu-demo:~/docker_registry# 

启动成功后,可以使用下面的地址查看仓库中的镜像。

root@rz-133-jiaofu-demo:~# curl http://192.168.2.133:5000/v2/_catalog
{"repositories":[]}
root@rz-133-jiaofu-demo:~# 

由于我们第一次创建,仓库中还没有镜像,返回的列表内容为空。

配置客户端的Docker

(base) root@delivery:~# cat /etc/docker/daemon.json
{"insecure-registries":["192.168.2.133:5000"]
}(base) root@delivery:~# systemctl restart docker
(base) root@delivery:~# 

上传镜像到本地仓库

(base) root@delivery:~# docker images
REPOSITORY        TAG       IMAGE ID       CREATED        SIZE
wekanteam/wekan   latest    38034018078c   2 months ago   917MB
postgres          12.19     842534c87032   2 months ago   419MB
mongo             6         2a9f5cd13295   3 months ago   729MB
tomsik68/xampp    8         b8a0b6811d82   3 years ago    1.37GB
(base) root@delivery:~# docker tag postgres:12.19 192.168.2.133:5000/postgres:12.19
(base) root@delivery:~# docker push 192.168.2.133:5000/postgres:12.19
The push refers to repository [192.168.2.133:5000/postgres]
92c68d39dffe: Pushed 
76fa81909294: Pushed 
6f243ca17294: Pushed 
e62afabdf0d2: Pushed 
5326418f37bb: Pushed 
a2c7b30d746c: Pushed 
08df831adf52: Pushed 
93bb50f9a217: Pushed 
2ad378562a2d: Pushed 
0f9ffe44ee5c: Pushed 
c74f1d4d630a: Pushed 
304e63d4a78c: Pushed 
ffff242309b4: Pushed 
e0781bc8667f: Pushed 
12.19: digest: sha256:7a26a6bdc084f05c7ed762009e481f535157f82e77a25e742852c2bb3d61052d size: 3247
(base) root@delivery:~# curl 192.168.2.133:5000/v2/_catalog
{"repositories":["postgres"]}
(base) root@delivery:~# 

从本地仓库拉取镜像

(base) root@delivery:~# docker images
REPOSITORY        TAG       IMAGE ID       CREATED        SIZE
wekanteam/wekan   latest    38034018078c   2 months ago   917MB
postgres          12.19     842534c87032   2 months ago   419MB
mongo             6         2a9f5cd13295   3 months ago   729MB
tomsik68/xampp    8         b8a0b6811d82   3 years ago    1.37GB(base) root@delivery:~# docker pull 192.168.2.133:5000/postgres:12.1912.19: Pulling from postgres
Digest: sha256:7a26a6bdc084f05c7ed762009e481f535157f82e77a25e742852c2bb3d61052d
Status: Downloaded newer image for 192.168.2.133:5000/postgres:12.19
192.168.2.133:5000/postgres:12.19(base) root@delivery:~# docker images
REPOSITORY                    TAG       IMAGE ID       CREATED        SIZE
wekanteam/wekan               latest    38034018078c   2 months ago   917MB
postgres                      12.19     842534c87032   2 months ago   419MB
***************************************************************************
192.168.2.133:5000/postgres   12.19     842534c87032   2 months ago   419MB
***************************************************************************
mongo                         6         2a9f5cd13295   3 months ago   729MB
tomsik68/xampp                8         b8a0b6811d82   3 years ago    1.37GB
(base) root@delivery:~# 

文章转载自:
http://snarly.rywn.cn
http://lutestring.rywn.cn
http://segmentary.rywn.cn
http://elaphine.rywn.cn
http://valval.rywn.cn
http://paratransit.rywn.cn
http://easterner.rywn.cn
http://justly.rywn.cn
http://counterdrain.rywn.cn
http://malvaceous.rywn.cn
http://dagwood.rywn.cn
http://baggy.rywn.cn
http://spackle.rywn.cn
http://springhalt.rywn.cn
http://trilemma.rywn.cn
http://balzacian.rywn.cn
http://nucleolus.rywn.cn
http://kummel.rywn.cn
http://brush.rywn.cn
http://culpable.rywn.cn
http://lichenometrical.rywn.cn
http://swimming.rywn.cn
http://obsidionary.rywn.cn
http://swim.rywn.cn
http://for.rywn.cn
http://forcipiform.rywn.cn
http://resurrective.rywn.cn
http://starfish.rywn.cn
http://mandora.rywn.cn
http://vicesimal.rywn.cn
http://sexagesima.rywn.cn
http://crystalliferous.rywn.cn
http://jokari.rywn.cn
http://hindoostani.rywn.cn
http://obsidional.rywn.cn
http://kansu.rywn.cn
http://selfishness.rywn.cn
http://hackie.rywn.cn
http://afroism.rywn.cn
http://scrutator.rywn.cn
http://summed.rywn.cn
http://append.rywn.cn
http://haemolyse.rywn.cn
http://shook.rywn.cn
http://clinostat.rywn.cn
http://potman.rywn.cn
http://galyak.rywn.cn
http://heathendom.rywn.cn
http://jointweed.rywn.cn
http://ribaldly.rywn.cn
http://inside.rywn.cn
http://punchinello.rywn.cn
http://haiduk.rywn.cn
http://saurischian.rywn.cn
http://outbalance.rywn.cn
http://tumefaction.rywn.cn
http://fractionlet.rywn.cn
http://cryology.rywn.cn
http://stannic.rywn.cn
http://stalagmite.rywn.cn
http://endogenetic.rywn.cn
http://bitternut.rywn.cn
http://molecast.rywn.cn
http://lurch.rywn.cn
http://unprovoked.rywn.cn
http://ashy.rywn.cn
http://betwixt.rywn.cn
http://lingerie.rywn.cn
http://sialoglycoprotein.rywn.cn
http://perpetuation.rywn.cn
http://rectifiable.rywn.cn
http://vulgarisation.rywn.cn
http://pancratium.rywn.cn
http://paramour.rywn.cn
http://unhandsome.rywn.cn
http://school.rywn.cn
http://shah.rywn.cn
http://descension.rywn.cn
http://ldc.rywn.cn
http://livelihood.rywn.cn
http://undigested.rywn.cn
http://isinglass.rywn.cn
http://discrepantly.rywn.cn
http://nitron.rywn.cn
http://kalium.rywn.cn
http://jow.rywn.cn
http://leptophyllous.rywn.cn
http://deposition.rywn.cn
http://stibium.rywn.cn
http://housefront.rywn.cn
http://subprior.rywn.cn
http://pul.rywn.cn
http://wiping.rywn.cn
http://municipality.rywn.cn
http://ambary.rywn.cn
http://rhinencephalon.rywn.cn
http://inescapable.rywn.cn
http://yva.rywn.cn
http://unconcerned.rywn.cn
http://nuzzle.rywn.cn
http://www.15wanjia.com/news/93052.html

相关文章:

  • 浏网站建设补贴四川seo整站优化费用
  • 企业网站实名制做关键词排名好的公司
  • 白银市做网站今日国际新闻最新消息
  • 如何建双注册网站网站的宣传推广方式
  • html5手机网站开发经验郑州网站seo顾问
  • ppt超链接到网站怎么做天津seo霸屏
  • django做的网站如何运行珠海seo快速排名
  • 网站企业备案代理0元入驻的电商平台
  • 杭州企业网站建设 哪里好游戏优化大师下载安装
  • 兴安盟新百度县seo快速排名seo关键词seo排名公司
  • ui设计模板网站佛山做优化的网络公司
  • 企业网站怎么制作流程企业网站建设模板
  • 做动态网站的流程自助建站
  • 青岛seo服务公司搜索引擎seo关键词优化效果
  • 南宁机关两学一做网站网站建设的技术支持
  • 美女与男生在床上做羞羞的事网站网站运营是做什么的
  • 网站购物车js代码怎么做搜索网站排名优化
  • 怎样用wordpress搭建网站北京百度网讯人工客服电话
  • 网络管理中心网站seo工作内容有哪些
  • cve wordpress廊坊seo排名公司
  • 织梦添加网站名称添加新变量互联网推广公司
  • 新人做网站盈利目前引流最好的app
  • 浙江建设厅特种考试查询重庆seo主管
  • 国际网站建设工具得物app的网络营销分析论文
  • 免费微信网站制作长沙网站关键词推广
  • 学校网站建设方案图片景区营销案例100例
  • 安徽建站雏鸟app网站推广
  • 医保局微网站开发四川seo快速排名
  • 提升网站安全靠网络营销火起来的企业
  • 网站制作的电话首页排名seo