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

Sonatype nexus 怎么配置自身访问 doker hub 的代理?

  •  
  •   kyonn · Dec 31, 2024 · 1361 views
    This topic created in 483 days ago, the information mentioned may be changed or developed.
    • 在设置中的系统/http 设置中启用了 http 和 https proxy, 好像不起作用. 使用 docker pull 去拉镜像还是提示出错. 系统中 /etc/systemd/system/docker.service.d/http-proxy.conf 中的代理配置都已经去掉了.

    • /etc/docker/daemon.json 已经配置为 nexus 中的 docker group 地址.

    • 使用 nexus 前, 直接用 /etc/systemd/system/docker.service.d/http-proxy.conf 的代理, 拉 docker 镜像没问题的.

    • 还有个问题, nexus 中添加 docker proxy repository 中的鉴权是对 docker hub 网站的鉴权吗? 那是不是意味着 docker client 端没必要使用 docker login 了?

    Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    
    kyonn
        1
    kyonn  
    OP
       Dec 31, 2024
    执行 `sudo docker logout` 后解决了, 原因未知.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5627 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:35 · PVG 09:35 · LAX 18:35 · JFK 21:35
    ♥ Do have faith in what you're doing.