V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lchqfnu
V2EX  ›  Docker

求助,搭建 harbor 私有 docker 仓库时配置 https 受阻

  •  
  •   lchqfnu · Aug 7, 2019 · 5045 views
    This topic created in 2455 days ago, the information mentioned may be changed or developed.

    A 机部署 harbor,B 机客户端,C 机宿主机(win)目前 C 机访问 https://IP 可以正常打开 harbor UI,正常登入用户。 A 机可以正常访问 harbor 服务(docker login/pull/push 都没问题),B 机(其他客户端)登陆时报错: [root@k8s-node1 docker]# docker login yourdomain.com Username: admin Password: Error response from daemon: Get https://yourdomain.com/v2/: EOF

    在网上找资料,试过把.cert,.key,ca.crt 文件拷到 B 机的 /etc/docker/cert.d/yourdomain.com/下 没有解决问题。

    求大神帮助分析。

    2 replies    2019-08-13 11:18:34 +08:00
    lchqfnu
        1
    lchqfnu  
    OP
       Aug 7, 2019
    有搭过 harbor 的同学 分享些经验呗~
    imherer
        2
    imherer  
       Aug 13, 2019   ❤️ 1
    理论上把.cert,.key,ca.crt 这些拷过去应该没问题了,我之前也搭过一次,不过是在 mac 上弄的,成功了

    还有一种方法在 C 机 docker 里加上 insecurity repository 地址试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1046 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 22:44 · PVG 06:44 · LAX 15:44 · JFK 18:44
    ♥ Do have faith in what you're doing.