首页 > 系统相关 >解决Centos7中docker无法从非官方库中pull镜像

解决Centos7中docker无法从非官方库中pull镜像

时间:2022-11-25 15:40:42浏览次数:41  
标签:pull dl 5000 Centos7 dockerpool 库中 Download docker com


系统版本

[root@bogon ~]# cat /etc/redhat-release 

CentOS Linux release 7.1.1503 (Core) 

 

docker版本

[root@bogon ~]# docker --version

Docker version 1.7.1, build 446ad9b/1.7.1

 

错误信息

[root@bogon ~]#  docker pull dl.dockerpool.com:5000/ubuntu:12.04

Error response from daemon: invalid registry endpoint https://dl.dockerpool.com:5000/v0/: unable to ping registry endpoint https://dl.dockerpool.com:5000/v0/

v2 ping attempt failed with error: Get https://dl.dockerpool.com:5000/v2/: tls: oversized record received with length 28012

 v1 ping attempt failed with error: Get https://dl.dockerpool.com:5000/v1/_ping: tls: oversized record received with length 28012. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry dl.dockerpool.com:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/dl.dockerpool.com:5000/ca.crt

[root@bogon ~]# 

 

解决办法:

修改/etc/sysconfig/docker文件,增加如下信息

OPTIONS='--selinux-enabled --insecure-registry dl.dockerpool.com:5000'

 

重启docker服务并重新下载

[root@bogon ~]# systemctl restart docker.service 

[root@bogon ~]#  docker pull dl.dockerpool.com:5000/ubuntu:12.04

Trying to pull repository dl.dockerpool.com:5000/ubuntu ...

0b310e6bf058: Download complete 

511136ea3c5a: Download complete 

5f18d94c3eca: Download complete 

53db23c604fd: Download complete 

9f045ea36057: Download complete 

d03a1a9d7555: Download complete 

30868777f275: Download complete 

Status: Downloaded newer image for dl.dockerpool.com:5000/ubuntu:12.04

 

 

标签:pull,dl,5000,Centos7,dockerpool,库中,Download,docker,com
From: https://blog.51cto.com/u_13991401/5886775

相关文章

  • centos7 关闭firewall安装iptables并配置
     一、配置防火墙,开启80端口、3306端口CentOS7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctlstopfirewalld.service ......
  • centos7配置autofs自动挂载nfs
    本篇介绍在centos7.9系统中安装autofs自动挂载nfs集群已经部署完成了nfs服务,其导出的共享目录地址为:192.168.80.187:/home/export/base,需求是在node17里面当用户登陆时,自......
  • centos7部署mpi和module环境
    1.概述本篇博客主要介绍在centos7.9部署和测试mpi并行程序开发环境,并通过module加载不同的环境。2.部署过程2.1安装mpich节点安装相关依赖环境:yum-yinstallgcc-g......
  • 【Linux】linux | CentOS7 | 命令行模式 | 图形化界面模式
    1、图形化界面->命令行1)键盘按键Ctrl+Alt+F32、命令行->图形化界面1)键入命令init5......
  • centos7使用cgroup对user进行资源限制
    1.概述本篇介绍在centos7.9(4核1G虚拟机)上使用cgroup对user的资源(cpu,memory)进行限制,达到对普通用户的资源利用限制跟root资源限制生效且效果不同。适用于多用户登陆节......
  • CentOS7.9 MySQL5.1 安装
    1.下载相关mysql源码包wgethttps://downloads.mysql.com/archives/get/p/23/file/mysql-5.1.63-linux-x86_64-glibc23.tar.gz2.安装相关依赖包yuminstallbisongcc......
  • centos7部署heartbeat3.0
    1.概述本篇介绍在centos7.9上快速部署heartbeat3.0.6,以便在后续学习工作中使用heartbeat作为高可用软件实施其他服务的高可用部署。centos7.9源码编译按转heartbeat,大致......
  • Python3基于Centos7的安装
    0x00环境Centos7.9,默认已安装python2.7.50x01依赖软件yuminstallwgetzlib-develbzip2-developenssl-develncurses-develreadline-develtk-develgccmakezl......
  • centos7简单登录redis
    登录数据库:redis_cli-h[host]-p[port]输入用户名、密码登录auth[username]password选择数据库selectindex12.1对key操作的命令keys*:查询所有的ke......
  • Linux CentOS7.X-命令记录
    1、链接命令ln硬链接:相当于复制。ln源文件(路径 )   目标文件(路径)硬链接文件,只要修改了其中一个文件,另外一个文件也会同步修改,但是删除操作不......