Chapter 5. Pulling images from a container repository


Pull images from the automation hub container registry to make a copy to your local machine. Automation hub provides the podman pull command for each latest image in the container repository. You can copy and paste this command into your terminal, or use podman pull to copy an image based on an image tag.

5.1. Prerequisites

You must have permission to view and pull from a private container repository.

5.2. Pulling an image

You can pull images from the automation hub container registry to make a copy to your local machine. Automation hub provides the podman pull command for each latest image in the container repository.

Note

If you need to pull container images from a password or token-protected registry, you must create a credential in automation controller before pulling the image.

Procedure

  1. Navigate to Execution Environments.
  2. Select your container repository.
  3. In the Pull this image entry, click Copy to clipboard.
  4. Paste and run the command in your terminal.

Verification

  • Run podman images to view images on your local machine.

5.3. Syncing images from a container repository

You can pull images from the automation hub container registry to sync an image to your local machine.

Prerequisites

You must have permission to view and pull from a private container repository.

Procedure

To sync an image from a remote container registry, you need to configure a remote registry.

  1. Navigate to Execution Environments Remote Registries.
  2. Add https://registry.redhat.io to the registry.
  3. Add any required credentials to authenticate.
Note

Some container registries are aggressive with rate limiting. It is advisable to set a rate limit under Advanced Options.

  1. Navigate to Execution Environments Execution Environments.
  2. Click Add execution environment in the page header.
  3. Select the registry you wish to pull from. The "name" field displays the name of the image that will show up as on your local registry.
Note

The "Upstream name" field is the name of the image on the remote server. For example if the upstream name is set to "alpine" and the “name” field to "local/alpine", the alpine image will be downloaded from the remote and renamed to local/alpine.

It is advisable to set a list of tags to include or exclude. Syncing images with a large number of tags is time consuming and will use a lot of disk space.

Additional resources

5.4. Additional resources

  • See the What is Podman? documentation for options to use when pulling images.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.