Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

7.4. 레지스트리 채우기

연결이 끊긴 환경에서 이미지를 태그를 지정하고 내부 레지스트리로 내보냅니다.

중요

다음 단계는 이미지를 레지스트리에 로드하는 일반적인 가이드입니다. 이미지를 로드하려면 더 많은 또는 다른 작업을 수행해야 할 수 있습니다.

  1. 이미지를 레지스트리로 푸시하기 전에 각 이미지를 다시 태그합니다.

    • 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. 각 이미지를 레지스트리에 푸시합니다. 예를 들어 OpenShift Container Platform 노드 이미지를 푸시하려면 다음을 수행합니다.

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