zoukankan      html  css  js  c++  java
  • docker上传镜像报错HTTP or HTTPS with an unknown CA certificate 解决方案

    环境:

    system:centos6.6

    Docker version :1.7.1, build 786b29d/1.7.1

    kernel:4.4.163-1.el6.elrepo.x86_64

    上传镜像时报错信息如下:

    [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

    解决方案1

    在上传的系统用以下命令启动docker服务:

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

    解决方案2

    修改/etc/sysconfig/docker 中的other_args,添加以下参数:

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

  • 相关阅读:
    python 基础1-变量名
    Jmeter分布式测试踩过的坑
    Jmeter接口测试踩过的坑
    搭建数据库环境
    char与char的区别
    jmeter性能测试的小小实践
    自动化测试badboy脚本开发(一)
    sql多表查询(单表查询略过)
    认识jmeter
    http与https的区别
  • 原文地址:https://www.cnblogs.com/hana-alice/p/10064987.html
Copyright © 2011-2022 走看看