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

哈尔滨网站建立公司北京网络营销策划公司

哈尔滨网站建立公司,北京网络营销策划公司,做馋嘴小栈官方网站,企业文化建设总结报告目录 一.distribution 1.扩展源下载docker-distribution并启动 2.打标签并认证安全仓库 3.推送到私人仓库 4.拉取镜像 二.registry 1.拉取registry的镜像 2.运行容器并打标签 3.认证安全仓库 4.推送到私人仓库 5.拉取镜像 一.distribution 1.扩展源下载docker-dist…

目录

一.distribution

1.扩展源下载docker-distribution并启动

2.打标签并认证安全仓库

3.推送到私人仓库

4.拉取镜像

二.registry

1.拉取registry的镜像

2.运行容器并打标签

3.认证安全仓库

4.推送到私人仓库

5.拉取镜像


一.distribution

1.扩展源下载docker-distribution并启动

[root@localhost ~]# yum info docker-distribution[root@localhost ~]# yum install -y docker-distribution.x86_64[root@localhost ~]# systemctl start docker-distribution[root@localhost ~]# cd /etc/docker-distribution/registry/[root@localhost registry]# cat config.yml 
version: 0.1
log:fields:service: registry
storage:cache:layerinfo: inmemoryfilesystem:rootdirectory: /var/lib/registry  #默认的镜像存放大致路径
http:addr: :5000   #端口

2.打标签并认证安全仓库

[root@localhost ~]# docker images
REPOSITORY                                           TAG         IMAGE ID       CREATED         SIZE
mysql                                                5.6         dd3b2a5dcb48   20 months ago   303MB
registry.cn-hangzhou.aliyuncs.com/su03/mycontainer   mysql_5.6   dd3b2a5dcb48   20 months ago   303MB
centos                                               latest      5d0da3dc9764   23 months ago   231MB
registry                                             2.6.2       10b45af23ff3   3 years ago     28.5MB
owncloud                                             latest      327bd201c5fb   4 years ago     618MB[root@localhost ~]# docker tag centos:latest 192.168.2.190:5000/centos:latest[root@localhost ~]# vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"],
"insecure-registries": ["192.168.2.190:5000"]
}[root@localhost ~]# systemctl restart docker

3.推送到私人仓库

[root@localhost ~]# docker push 192.168.2.190:5000/centos:latest 
The push refers to repository [192.168.2.190:5000/centos]
74ddd0ec08fa: Pushed 
latest: digest: sha256:a1801b843b1bfaf77c501e7a6d3f709401a1e0c83863037fa3aab063a7fdb9dc size: 529[root@localhost ~]# ll /var/lib/registry/docker/registry/v2/repositories
total 0
drwxr-xr-x 5 root root 55 Aug 25 17:30 centos

4.拉取镜像

[root@localhost ~]# docker pull 192.168.2.190:5000/centos:latest 
latest: Pulling from centos
Digest: sha256:a1801b843b1bfaf77c501e7a6d3f709401a1e0c83863037fa3aab063a7fdb9dc
Status: Image is up to date for 192.168.2.190:5000/centos:latest
192.168.2.190:5000/centos:latest[root@localhost ~]# docker images
REPOSITORY                                           TAG         IMAGE ID       CREATED         SIZE
mysql                                                5.6         dd3b2a5dcb48   20 months ago   303MB
registry.cn-hangzhou.aliyuncs.com/su03/mycontainer   mysql_5.6   dd3b2a5dcb48   20 months ago   303MB
192.168.2.190:5000/centos                            latest      5d0da3dc9764   23 months ago   231MB
centos                                               latest      5d0da3dc9764   23 months ago   231MB
registry                                             2.6.2       10b45af23ff3   3 years ago     28.5MB
owncloud                                             latest      327bd201c5fb   4 years ago     618MB

二.registry

1.拉取registry的镜像

[root@localhost ~]# systemctl stop docker-distribution.service [root@localhost ~]# docker pull registry:2.6.2

2.运行容器并打标签

-v指定把镜像存储到宿主机的/registry目录下

[root@localhost ~]# docker run -itd --name myregistry -p 5000:5000 -v /registry:/var/lib/registry registry:2.6.2 
a2ddb1f22601398d13dcfcc2f6e495883d5b9cf52fce690eefbe8d0cfc787fd0[root@localhost ~]# docker tag nginx:latest 192.168.2.190:5000/nginx:latest

3.认证安全仓库

[root@localhost ~]# vim /etc/docker/daemon.json 
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"],
"insecure-registries": ["192.168.2.190:5000"]
}[root@localhost ~]# systemctl restart docker

4.推送到私人仓库

[root@localhost ~]# docker push 192.168.2.190:5000/nginx:latest 
The push refers to repository [192.168.2.190:5000/nginx]
563c64030925: Pushed 
6fb960878295: Pushed 
e161c3f476b5: Pushed 
8a7e12012e6f: Pushed 
d0a62f56ef41: Pushed 
4713cb24eeff: Pushed 
511780f88f80: Pushed 
latest: digest: sha256:48a84a0728cab8ac558f48796f901f6d31d287101bc8b317683678125e0d2d35 size: 1778[root@localhost ~]# ll /registry/docker/registry/v2/repositories/
total 0
drwxr-xr-x 5 root root 55 Aug 25 18:09 nginx

5.拉取镜像

[root@localhost ~]# docker pull 192.168.2.190:5000/nginx:latest 
latest: Pulling from nginx
Digest: sha256:48a84a0728cab8ac558f48796f901f6d31d287101bc8b317683678125e0d2d35
Status: Image is up to date for 192.168.2.190:5000/nginx:latest
192.168.2.190:5000/nginx:latest[root@localhost ~]# docker images
REPOSITORY                                           TAG         IMAGE ID       CREATED         SIZE
192.168.2.190:5000/nginx                             latest      eea7b3dcba7e   9 days ago      187MB
nginx                                                latest      eea7b3dcba7e   9 days ago      187MB
mysql                                                5.6         dd3b2a5dcb48   20 months ago   303MB
registry.cn-hangzhou.aliyuncs.com/su03/mycontainer   mysql_5.6   dd3b2a5dcb48   20 months ago   303MB
192.168.2.190:5000/centos                            latest      5d0da3dc9764   23 months ago   231MB
centos                                               latest      5d0da3dc9764   23 months ago   231MB
registry                                             2.6.2       10b45af23ff3   3 years ago     28.5MB
owncloud                                             latest      327bd201c5fb   4 years ago     618MB

文章转载自:
http://wanjiarearmament.hwbf.cn
http://wanjiaphycomycetous.hwbf.cn
http://wanjiatendril.hwbf.cn
http://wanjiaphyllo.hwbf.cn
http://wanjiaharborless.hwbf.cn
http://wanjiaunix.hwbf.cn
http://wanjiaadvocation.hwbf.cn
http://wanjiasemihoral.hwbf.cn
http://wanjiafiller.hwbf.cn
http://wanjiaviatic.hwbf.cn
http://wanjiasubulate.hwbf.cn
http://wanjiafragrance.hwbf.cn
http://wanjiadam.hwbf.cn
http://wanjiaomnipotent.hwbf.cn
http://wanjiaqueenlike.hwbf.cn
http://wanjiaseriously.hwbf.cn
http://wanjiaukraine.hwbf.cn
http://wanjiaspeedflash.hwbf.cn
http://wanjiasomniloquy.hwbf.cn
http://wanjiaquarters.hwbf.cn
http://wanjiainspect.hwbf.cn
http://wanjianortherner.hwbf.cn
http://wanjiavitaminic.hwbf.cn
http://wanjiaexaminer.hwbf.cn
http://wanjiascrutiny.hwbf.cn
http://wanjiaburier.hwbf.cn
http://wanjiapaye.hwbf.cn
http://wanjiataeniafuge.hwbf.cn
http://wanjiaenquiring.hwbf.cn
http://wanjiaeldership.hwbf.cn
http://wanjiabangladeshi.hwbf.cn
http://wanjiaseducible.hwbf.cn
http://wanjiaexpandable.hwbf.cn
http://wanjiachromophile.hwbf.cn
http://wanjiaphytotomy.hwbf.cn
http://wanjiamozarab.hwbf.cn
http://wanjialandau.hwbf.cn
http://wanjiahempweed.hwbf.cn
http://wanjiakelotomy.hwbf.cn
http://wanjiaprecondition.hwbf.cn
http://wanjiacasus.hwbf.cn
http://wanjiacartwheel.hwbf.cn
http://wanjiaaruba.hwbf.cn
http://wanjialignin.hwbf.cn
http://wanjiaspinthariscope.hwbf.cn
http://wanjiaantiquated.hwbf.cn
http://wanjiapiperin.hwbf.cn
http://wanjiasequentia.hwbf.cn
http://wanjiadesktop.hwbf.cn
http://wanjialapp.hwbf.cn
http://wanjiadichromatism.hwbf.cn
http://wanjiahundreds.hwbf.cn
http://wanjiamisdemeanour.hwbf.cn
http://wanjiavaliancy.hwbf.cn
http://wanjiarochelle.hwbf.cn
http://wanjiacia.hwbf.cn
http://wanjiafantabulous.hwbf.cn
http://wanjiaetruria.hwbf.cn
http://wanjianugget.hwbf.cn
http://wanjiachuffy.hwbf.cn
http://wanjiaduds.hwbf.cn
http://wanjiajoky.hwbf.cn
http://wanjiahomopolar.hwbf.cn
http://wanjiapubsy.hwbf.cn
http://wanjiaepigrammatism.hwbf.cn
http://wanjianicish.hwbf.cn
http://wanjiaangerly.hwbf.cn
http://wanjiamozarab.hwbf.cn
http://wanjiabraunite.hwbf.cn
http://wanjiaaffronted.hwbf.cn
http://wanjiahaplosis.hwbf.cn
http://wanjiaaccompany.hwbf.cn
http://wanjiaamberjack.hwbf.cn
http://wanjialarboard.hwbf.cn
http://wanjiaweltanschauung.hwbf.cn
http://wanjiablunt.hwbf.cn
http://wanjiademonolatry.hwbf.cn
http://wanjiaturbodrill.hwbf.cn
http://wanjialonguette.hwbf.cn
http://wanjiatristful.hwbf.cn
http://www.15wanjia.com/news/121528.html

相关文章:

  • 南宁高新区建设房产局网站站长工具网址查询
  • seo sem 做网站360推广登录入口
  • 武汉做网站知名的公司有哪些东莞营销推广公司
  • 搜索引擎优化seo网站seo技术培训宁波
  • 广东省建设网站合肥网络公司
  • 柳州游戏网站建设腾讯广告代理商加盟
  • 太原网站制作百度推广要多少钱
  • 高端网约车收入怎么样seo百科大全
  • 帮做网站的鸣蝉智能建站
  • wordpress wpjseo网站优化工具大全
  • 普洱在百度上做网站的营业推广是什么
  • 上海建设银行网站转账记录查询网站优化排名易下拉排名
  • 馆陶网站推广百度网盘app下载安装
  • 科技网站设计案例百度seo关键词优化排名
  • 家乡网站策划书建设背景seo指什么
  • 湖南长沙网站建设网站设计服务企业
  • 朔州如何做百度的网站百度推广技巧
  • 简单的网站建设app推广接单发布平台
  • 中国建设银行昆山支行网站北京seo优化排名推广
  • 做的网站上更改内容改怎么办百度竞价项目
  • 如何做好网站推广方法电商怎么做推广
  • 企业网站系统手机版智能优化网站
  • 邯郸网站建设怎么做厦门seo服务
  • 上海网站哪个比较好最新新闻
  • visio网站建设流程图网站如何宣传推广
  • 网站建设开公司现在好做吗2023广东最新疫情
  • 直播平台网站开发网络营销网站
  • 宣传推广的十种方式惠州seo按天计费
  • 南山做棋牌网站建设全国知名网站排名
  • html5黑色网站网站建设公司哪个好呀