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.
When OpenShift Container Platform 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
:
Value | Description |
---|---|
|
Always pull the image. |
|
Only pull the image if it does not already exist on the node. |
|
Never pull the image. |
If a container imagePullPolicy
parameter is not specified, OpenShift Container Platform sets it based on the image tag:
If the tag is latest
, OpenShift Container Platform defaults imagePullPolicy
to Always
.
Otherwise, OpenShift Container Platform defaults imagePullPolicy
to IfNotPresent
.