#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo #yum clean all #yum makecache #yum update -y #reboot
#yum install docker docker-registry -y
#yum install docker* -y #yum remove docker-latest* -y
#systemctl enable docker #systemctl start docker #systemctl enable docker-registry #systemctl start docker-registry
[root@01 /]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1109/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1384/master tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 20437/python tcp6 0 0 :::22 :::* LISTEN 1109/sshd tcp6 0 0 ::1:25 :::* LISTEN 1384/master
[root@01 /]# curl "http://192.168.1.107:5000" "\"docker-registry server\""[root@01 /]# [root@01 /]#
[root@01 /]# docker tag cfba59e097ba 192.168.1.107:5000/test1 [root@01 /]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE 192.168.1.107:5000/test1 latest ac0b483c17fa 3 days ago 634.6 MB docker.io/redmine latest cfba59e097ba 3 days ago 634.6 MB docker.io/registry latest c9bd19d022f6 2 weeks ago 33.27 MB [root@01 /]#
[root@01 /]# docker pull 192.168.1.107:5000/test1 Using default tag: latest Trying to pull repository 192.168.1.107:5000/test1 ... unable to ping registry endpoint https://192.168.1.107:5000/v0/ v2 ping attempt failed with error: Get https://192.168.1.107:5000/v2/: EOF v1 ping attempt failed with error: Get https://192.168.1.107:5000/v1/_ping: EOF [root@01 /]#
[root@01 /]# vim /etc/sysconfig/docker
OPTIONS='--insecure-registry 192.168.1.107:5000'
[root@01 /]# systemctl restart docker docker-registry
[root@01 system]# docker push 192.168.1.107:5000/test1
The push refers to a repository [192.168.1.107:5000/test1]
07c28c5d0371: Image successfully pushed
6365a80ad26a: Image successfully pushed
c5e7c0f1d017: Image successfully pushed
b45f06d28f46: Image successfully pushed
3f3c0394ba5a: Image successfully pushed
ddd6e2a8209e: Image successfully pushed
f306cb9361f7: Image successfully pushed
2d143a3783bc: Image successfully pushed
f110684b8ae3: Image successfully pushed
d7d24df90586: Image successfully pushed
e26addf75a78: Image successfully pushed
82c666956815: Image successfully pushed
9a2b1c643e93: Image successfully pushed
eb9546f264dc: Image successfully pushed
f96222d75c55: Image successfully pushed
Pushing tag for rev [cfba59e097ba] on {http://192.168.1.107:5000/v1/repositories/test1/tags/latest}
[root@01 system]#
[root@01 /]# docker pull 192.168.1.107:5000/test1 Using default tag: latest Trying to pull repository 192.168.1.107:5000/test1 ... Pulling repository 192.168.1.107:5000/test1 cfba59e097ba: Already exists f96222d75c55: Already exists d17727727b61: Already exists 92db66c8ffce: Already exists 10a436a2f8fa: Already exists 8b40995a66da: Already exists a2cba87d9ea4: Already exists 5a187c7a57c4: Already exists d15f50d30606: Already exists 4366383cdf86: Already exists c7cb938f30c3: Already exists f135d604f740: Already exists 3f3d23c69aef: Already exists e6adcc9c0e4b: Already exists 53289b480679: Already exists Status: Image is up to date for 192.168.1.107:5000/test1:latest 192.168.1.107:5000/test1: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker. [root@01 /]#
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有