This is a cache of https://docs.openshift.com/rosa/openshift_images/managing_images/image-pull-policy.html. It is a snapshot of the page at 2024-11-24T03:10:20.309+0000.
Image pull policy - Managing images | Images | Red Hat OpenShift <strong>service</strong> on AWS
×

Each container in a pod has a container image. After you have created an image and pushed it to a registry, you can then refer to it in the pod.

Image pull policy overview

When Red Hat OpenShift service on AWS creates containers, it uses the container imagePullPolicy to determine if the image should be pulled prior to starting the container. There are three possible values for imagePullPolicy:

Table 1. imagePullPolicy values
Value Description

Always

Always pull the image.

IfNotPresent

Only pull the image if it does not already exist on the node.

Never

Never pull the image.

If a container imagePullPolicy parameter is not specified, Red Hat OpenShift service on AWS sets it based on the image tag:

  1. If the tag is latest, Red Hat OpenShift service on AWS defaults imagePullPolicy to Always.

  2. Otherwise, Red Hat OpenShift service on AWS defaults imagePullPolicy to IfNotPresent.