docker - 使Docker Registry HA

标签 docker high-availability docker-registry

请注意:这是一个非常相似的问题as this one,但是我断言这不是骗子!另一个问题显然是基于(较旧的)基于Python的Docker注册表,而不是用GoLang编写的最新注册表,而且看起来有很大不同!

我花了几个小时阅读setting up a private Docker Registry的文档,并使其在具有以下特征的远程VM上运行:

  • 使用基本身份验证进行了身份验证,我有一个测试用户使用它
  • 对TLS使用根CA证书
  • 使用本地文件系统进行存储(我可能会将其升级到Ceph / Rados)

  • 到现在为止还挺好。但是现在我想将其设置为HA,并且文档似乎没有提及它而感到震惊。在old Python docs中,有一整节专门介绍HA,但是我不愿意关注它们,因为更新的(基于GoLang的)注册表似乎根本没有提到HA。

    所以我的担心:
  • 有没有办法使更新的(GoLang)注册表HA?如果是这样,文档在哪里?
  • 什么是一般方法?负载均衡器后面的群集注册表实例?以一名为主,并有1个以上的中学?主从?
  • 最佳答案

    实际上是在“Deploying a registry server - Load Balancing Considerations”中引用的

    One may want to use a load balancer to distribute load, terminate TLS or provide high availability. While a full load balancing setup is outside the scope of this document, there are a few considerations that can make the process smoother.

    The most important aspect is that a load balanced cluster of registries must share the same resources. For the current version of the registry, this means the following must be the same:

    • Storage Driver
    • HTTP Secret
    • Redis Cache (if configured)


    这意味着实际的高可用性功能被认为是Docker分发项目的范围之外,但仍可以通过添加负载平衡器来实现。

    关于docker - 使Docker Registry HA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32678158/

    相关文章:

    docker - 使用cAdvisor监视Docker容器

    docker - Rancher 可以从私有(private)注册表中拉取镜像

    docker - docker push时无效的URL转义 “%”

    docker - 什么 Docker 镜像大小被认为是 'too large' ?

    docker - apache 没有在 Alpine 图像 docker 中启动

    docker - 如何在运行 Docker EE 的 Windows Server 2019 上运行 Docker Sql Server

    docker - 如何获取在一台机器上启动的设备的 IP 地址并在另一台设备中使用它?

    hadoop - HDFS 名称节点高可用性

    database - 高可用、无单点故障的小型数据库解决方案

    database-design - 高可用性和数据库设计