docker上傳鏡像報錯HTTP or HTTPS with an unknown CA certificate 解決方案

環境:docker

system:centos6.6centos

Docker version :1.7.1, build 786b29d/1.7.1ui

kernel:4.4.163-1.el6.elrepo.x86_64this

上傳鏡像時報錯信息以下:spa

[root@docker1 ~]# docker push 192.168.88.130:5000/centos
Error response from daemon: invalid registry endpoint https://192.168.88.130:5000/v0/: unable to ping registry endpoint https://192.168.88.130:5000/v0/
v2 ping attempt failed with error: Get https://192.168.88.130:5000/v2/: tls: oversized record received with length 20527
 v1 ping attempt failed with error: Get https://192.168.88.130:5000/v1/_ping: tls: oversized record received with length 20527. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 192.168.88.130: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/192.168.88.130:5000/ca.crt

 

解決方案1code

在上傳的系統用如下命令啓動docker服務:blog

docker -d --insecure-registry ip:5000 &ip

解決方案2it

修改/etc/sysconfig/docker 中的other_args,添加如下參數:io

other_args='--insecure-registry 192.168.88.130:5000'

相關文章
相關標籤/搜索