Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1003 Bytes

images-pulling-from-private-registries.adoc

File metadata and controls

37 lines (31 loc) · 1003 Bytes

Pulling from private registries with delegated authentication

A private registry can delegate authentication to a separate service. In these cases, image pull secrets must be defined for both the authentication and registry endpoints.

Procedure
  1. Create a secret for the delegated authentication server:

    $ oc create secret docker-registry \
        --docker-server=sso.redhat.com \
        [email protected] \
        --docker-password=******** \
        --docker-email=unused \
        redhat-connect-sso
    
    secret/redhat-connect-sso
  2. Create a secret for the private registry:

    $ oc create secret docker-registry \
        --docker-server=privateregistry.example.com \
        [email protected] \
        --docker-password=******** \
        --docker-email=unused \
        private-registry
    
    secret/private-registry