Samo K.
09/29/2025, 9:39 AMMarvin
09/29/2025, 9:39 AMMarvin
09/29/2025, 9:51 AMimage_pull_policy
accepts three values that follow the same semantics as Kubernetes:
- Always: Always pull the image before starting the container
- IfNotPresent: Only pull if the image is not already present locally
- Never: Never pull; the image must already exist on the host
Authoritative reference for these semantics: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
You can also see the accepted values in the Prefect Docker worker’s job configuration (from the prefect-docker
collection):
from prefect_docker.worker import DockerWorkerJobConfiguration
# Accepted values: 'Always', 'IfNotPresent', 'Never'
DockerWorkerJobConfiguration(
image="myrepo/myimage:tag",
image_pull_policy="IfNotPresent",
)
Source repo for the Prefect Docker collection: https://github.com/PrefectHQ/prefect-docker
If you want, tell me how you’re deploying (UI vs. code) and I can point to the exact place to set it.