Centos7中docker无法从非官方库中pull镜像的解决方法
2015-10-25 18:15
681 查看
系统版本
[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
本文出自 “王庆帅” 博客,转载请与作者联系!
[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
本文出自 “王庆帅” 博客,转载请与作者联系!
相关文章推荐
- 使用Docker模拟ansible集群环境
- 配置docker中免密码SSH
- 配置docker中免密码SSH
- Docker持续化集成和测试
- Docker持续化集成和测试
- Docker 清理命令集锦
- Docker 清理命令集锦
- Docker容器资源管理cgroups功能测试
- 下一代云计算模式:Docker正掀起个性化商业革命
- 10个基于DOCKER的顶尖开发工具
- 使用Docker打包Java/Spring Boot应用
- Linux下安装docker
- centos中使用docker创建mysql容器
- 基于Mesos和Docker的分布式计算平台
- Docker的那些事(1)--什么是Docker和如何迁移
- 在CentOS6.7下安装私有Docker Registry
- DICOM:试玩Docker发布C-STORE SCP服务
- docker学习笔记1
- ubuntu14.04安装docker及升级docker
- 通过jenkins平台自动发布程序到dokcer容器