搜索

7.4. 填充 registry

download PDF

在断开连接的环境中,标记并将镜像推送到内部 registry:

重要

以下步骤是将镜像加载到 registry 中的通用过程。您可能需要执行更多或不同的操作来加载镜像。

  1. 在将镜像推送到 registry 之前,请重新标记各个镜像。

    • 对于 openshift3 存储库中的镜像,将镜像标记为主版本和次版本号。例如,要标记 OpenShift Container Platform 节点镜像,请执行以下操作:

      $ docker tag registry.redhat.io/openshift3/ose-node:<tag> registry.example.com/openshift3/ose-node:<tag>
      $ docker tag registry.redhat.io/openshift3/ose-node:<tag> registry.example.com/openshift3/ose-node:{major-tag}
    • 对于其他镜像,使用准确版本号标记镜像。例如,要标记 etcd 镜像,执行以下操作:

      $ docker tag registry.redhat.io/rhel7/etcd:3.2.28 registry.example.com/rhel7/etcd:3.2.28
  2. 将每个镜像推送到 registry。例如,推送 OpenShift Container Platform 节点镜像:

    $ docker push registry.example.com/openshift3/ose-node:<tag>
    $ docker push registry.example.com/openshift3/ose-node:{major-tag}
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.