---
name: Registry-registry_rhos
title: Setting up Container Registry as a private registry on Red Hat OpenShift
description: You can add value to your Red Hat&reg; OpenShift&reg; Container Platform clusters by using IBM Cloud&reg; Container Registry even where an internal registry is already provided.
last-updated: 2025-10-14
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/Registry?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Setting up Container Registry as a private registry on Red Hat OpenShift
{: #registry_rhos}

You can add value to your Red Hat&reg; OpenShift&reg; Container Platform clusters by using IBM Cloud&reg; Container Registry even where an internal registry is already provided.
{: shortdesc}

For example, if you have multiple clusters, Container Registry integrates conveniently with Red Hat OpenShift Container Platform clusters so that you can build, share, synchronize, and scan image assets across clusters. For more information, see [Choosing an image registry solution](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#openshift_registry_options).

You can set up Container Registry to work with the internal registry of [Red Hat OpenShift on IBM Cloud](#registry_rhos_rhoks) or [other Red Hat OpenShift Container Platform providers](#registry_rhos_os).

## Setting up Red Hat OpenShift on IBM Cloud to use Container Registry
{: #registry_rhos_rhoks}
{: help}
{: support}

By default, your Red Hat OpenShift on IBM Cloud clusters are set up with an internal registry that stores images locally in your cluster. The clusters are also set up with image pull secrets in the `default` project to pull images that you store in your private Container Registry repositories.

You can use either registry separately or in combination. When you set up the Red Hat OpenShift on IBM Cloud internal registry to import images from Container Registry, you get the advantage of a private registry that is common to multiple clusters. Another benefit is that copies of the pulled images from Container Registry are stored locally on the cluster, therefore reducing latency and external traffic, but you're subject to storage limitations.

To set up your Red Hat OpenShift on IBM Cloud clusters to use the internal registry in combination with Container Registry, see the following topics in the Red Hat OpenShift on IBM Cloud documentation:

- [Importing images from IBM Cloud Container Registry into the internal registry image stream](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#imagestream_registry).
- [Setting up builds in the internal registry to push images to IBM Cloud Container Registry](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#builds_registry).

## Setting up Red Hat OpenShift Container Platform to use Container Registry
{: #registry_rhos_os}

To set up Red Hat OpenShift Container Platform, you must create secrets that have the credentials to access Container Registry so that you can perform the following actions.

- **Pull** Create image pull secrets to [pull images](#registry_rhos_os_pull) from Container Registry to your Red Hat OpenShift cluster. For example, you might deploy an app that uses an image in a private registry.
- **Push** Create image push secrets to [push images](#registry_rhos_os_push) from your Red Hat OpenShift cluster to a repository in Container Registry. For example, you might set up a continuous delivery pipeline that builds an image to a private registry instead of the internal registry.
- **Both** Create a secret that can pull images from and push images to Container Registry. For example, you might set up a continuous delivery pipeline that builds an image to a private registry so that your team can pull the most recent image across multiple clusters.

### Setting up the Red Hat OpenShift Container Platform internal registry to pull from Container Registry
{: #registry_rhos_os_pull}
{: help}
{: support}

To configure Red Hat OpenShift Container Platform to pull from Container Registry, you must complete the following steps:

1. [Set up image pull secrets to IBM Cloud Container Registry](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#other_registry_accounts) for each project that you want to pull images in.

2. [Configure Red Hat OpenShift Container Platform to use the image pull secrets](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#use_imagePullSecret) by adding the secrets to a service account in each project or by referring to the secret in your [pod](#x8461823){: term} deployment. You're only required to add the secret to the projects that you want to pull to.

### Setting up the Red Hat OpenShift Container Platform build to push images to Container Registry
{: #registry_rhos_os_push}
{: help}
{: support}

If you want to push application images from Red Hat OpenShift Container Platform to Container Registry, you must edit the Red Hat OpenShift Container Platform build configuration to point at Container Registry, where `myregistry.mycompany.io` is `<region_domain_name>.icr.io`, where `<region_domain_name>` is the domain name for the region. For more information about Container Registry regions and domain names, see [Regions](https://cloud.ibm.com/docs/Registry?topic=Registry-registry_overview&format=markdown#registry_regions).

For instructions, see [Setting up builds in the internal registry to push images to IBM Cloud Container Registry](https://cloud.ibm.com/docs/openshift?topic=openshift-registry&format=markdown#builds_registry).