V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dzdh
V2EX  ›  Docker

佬们有谁整过 docker registry2 的 auth 吗

  •  
  •   dzdh · 2022-06-10 16:01:10 +08:00 · 703 次点击
    这是一个创建于 657 天前的主题,其中的信息可能已经有所发展或是发生改变。

    需求:私有化镜像仓库

    选型: registry ( https://github.com/distribution/distribution/)

    参考文档: https://docs.docker.com/registry/ https://docs.docker.com/registry/configuration/ https://docs.docker.com/registry/spec/auth/token/

    默认是不带验证的,支持 token 模式配置,需要开发个认证中心。大概流程图是

    没老看懂。这个 token 的生成根据什么生成,registry 是怎么验证的,没看到有 registry 和 auth 有通信,那一定是个公有的私钥或者证书。

    不明白的点是: 配置 auth:token:rootbundlecert 是个证书没问题。那生成 jwt 是用这个证书的私钥就行了?

    在哪里配置 registry 能知道 验证中心的地址是 a.com 还是 b.com 。这个域名路径在哪配置的?

    dzdh
        1
    dzdh  
    OP
       2022-06-14 12:55:46 +08:00
    自己整明白了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2449 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:02 · PVG 08:02 · LAX 17:02 · JFK 20:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.