Create containers by using images from third-party registries
Some container image registries require access authorization. Podman is an open source tool for managing containers and container images and interacting with image registries. You can use Podman to authenticate your credentials, pull the registry image, and store local images in a local file system. The procedure provides a generic example of authenticating the registry with Podman.
Red Hat OpenShift Container Platform can communicate with registries to access private image repositories by using credentials supplied by the user. This allows Red Hat OpenShift Container Platform to push and pull images to and from private repositories.
Red Hat OpenShift Container Platform can create containers by using images from third-party registries, but these registries unlikely offer the same image notification support as the integrated OpenShift image registry.In this situation, Red Hat OpenShift Container Platform fetches tags from the remote registry upon image stream creation. To refresh the fetched tags, run oc import-image <stream>. When new images are detected, the previously described build and deployment reactions occur.
-
Use the Red Hat Ecosystem Catalog to search for specific container images from the Red Hat Repository and select the required image.
-
Click Get this image to find the command for your container image.
-
Log in by running the following command and entering your username and password to authenticate. Example output is shown for demonstrative purposes.
$ podman login registry.redhat.ioUsername:<your_registry_account_username> Password:<your_registry_account_password> -
Download the image and save it locally by running the following command:
$ podman pull registry.redhat.io/<repository_name>