bfqymmt

k8s 拉取私有仓库的镜像时出错

  •  
  •   bfqymmt · Oct 9, 2020 · 5300 views
    This topic created in 2069 days ago, the information mentioned may be changed or developed.
    环境:rancher + k8s + harbor

    出错内容为:
    Failed to pull image "X.X.X.X/public/XXXX": rpc error: code = Unknown desc = failed to pull and unpack image "X.X.X.X/public/XXXX:latest": failed to resolve reference "X.X.X.X/public/XXXX:latest": failed to do request: Head https://X.X.X.X/public/XXXX/manifests/latest: dial tcp X.X.X.X:443: connect: connection refused

    已设置:
    harbor 中已改为 http 模式。

    在 k8s 中,使用命令行模式:docker pull X.X.X.X/public/XXXX,这样可以从 harbor 拉取镜像,但是在 k8s 中不行。

    问题:k8s 拉取私有仓库的镜像如何才能成功?
    3 replies    2020-10-09 16:35:48 +08:00
    ixx
        2
    ixx  
       Oct 9, 2020
    私库支持 https 吗
    index90
        3
    index90  
       Oct 9, 2020
    https://kiwenlau.com/note/2018/07/06/docker-memory/

    在 k8s 节点上,配置 insecure-registries,重启 docker 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:14 · PVG 23:14 · LAX 08:14 · JFK 11:14
    ♥ Do have faith in what you're doing.