zoukankan      html  css  js  c++  java
  • harbor-https

    root@douins-docker-01:~/openssl_harbor# docker login ***.douins.com
    Username: admin
    Password:
    Email: #@#.com
    Error response from daemon: invalid registry endpoint https://***.douins.com/v0/: unable to ping registry endpoint https://***.douins.com/v0/
    v2 ping attempt failed with error: Get https://***.douins.com/v2/: x509: certificate signed by unknown authority
    v1 ping attempt failed with error: Get https://***.douins.com/v1/_ping: x509: certificate signed by unknown authority. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry ***.douins.com` 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/***.douins.com/ca.crt
    root@douins-docker-01:~/openssl_harbor# cd /etc/docker/certs.d
    -bash: cd: /etc/docker/certs.d: No such file or directory
    root@douins-docker-01:~/openssl_harbor# mkdir -p /etc/docker/certs.d/***.douins.com/
    root@douins-docker-01:~/openssl_harbor# ls
    01.pem ca.crt ca.key demoCA douins.com.crt douins.com.csr douins.com.key
    root@douins-docker-01:~/openssl_harbor# cp ca.crt /etc/docker/certs.d/***.douins.com/
    root@douins-docker-01:~/openssl_harbor# docker login moz.douins.com
    Username: admin
    Password:
    Email: yanchao.liu@douins.com
    WARNING: login credentials saved in /root/.docker/config.json
    Login Succeeded

  • 相关阅读:
    1.6 linux基础(六)
    1.5 Linux基础(五)
    1.4 linux基础(四)
    在win10中安装VB的方法
    重新拾起这个博客
    实验11-2-2 学生成绩链表处理
    实验11-1-9 藏尾诗
    实验11-1-8 查找子串
    实验11-1-6 指定位置输出字符串
    实验9-8 通讯录排序
  • 原文地址:https://www.cnblogs.com/ycliu912/p/5443326.html
Copyright © 2011-2022 走看看