Kubernetes imagePullPolicy, digests and ImagePullBackOff
Answer: When the kubelet pulls an image depends on two things: the container's imagePullPolicy and the image tag. Omit the field and it is automatically set to Always for a :latest tag or no tag, and to IfNotPresent otherwise.
Example
apiVersion: v1
kind: Pod
metadata:
name: private-app
spec:
containers:
- name: app
image: fictional.registry.example:10443/team/app:v1.42.0
imagePullPolicy: IfNotPresent
imagePullSecrets:
- name: regcred
kubectl create secret docker-registry regcred \
--docker-server=fictional.registry.example:10443 \
--docker-username=me --docker-password='...'
Pull policies
| Policy | Kubelet | |---|---| | IfNotPresent | the image is pulled only if it is not already present locally | | Always | the runtime resolves the tag to a digest each launch and downloads only uncached layers | | Never | the kubelet does not try fetching the image; startup fails if it is missing |
Caching makes Always efficient if the registry is reliably accessible.
Names, tags and digests
- Without a registry hostname, Kubernetes assumes the Docker public registry:
busybox:1.32.0meansdocker.io/library/busybox:1.32.0. - Avoid
:latestin production: it is harder to track which version is running and to roll back. - A digest such as
image@sha256:...uniquely identifies a specific version, so a change at the registry cannot give you a mix of old and new Pods.
Private registries
- With
imagePullSecretson a Pod, access is limited to Pods that supply their own keys. - Node-level registry credentials, configured by a cluster administrator, let all Pods read any configured private registry.
- A kubelet credential provider plugin can fetch credentials dynamically.
ImagePullBackOff
ImagePullBackOff means a container could not start because Kubernetes could not pull its image, for example an invalid name or a missing imagePullSecret. Kubernetes keeps retrying with an increasing back-off delay, up to a limit of 300 seconds.
See also
Claims
- id: C1 claim: Omitted policy with :latest becomes Always. source: S2 evidence: "and the tag for the container image is
:latest,imagePullPolicyis automatically set toAlways."
- id: C2 claim: IfNotPresent pulls only when the image is missing locally. source: S2 evidence: "the image is pulled only if it is not already present locally."
- id: C3 claim: Avoid the latest tag in production. source: S1 evidence: "You should avoid using the :latest tag when deploying containers in production"
Sources
- [S1] Images. Kubernetes docs. https://kubernetes.io/docs/concepts/containers/images/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] images.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Images; kubernetes/website (GitHub), images.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Images; kubernetes/website (GitHub), images.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes imagePullPolicy, digests and ImagePullBackOff." iinventedlight Library, iil:note:snvc8t1q, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-image-pull-policy/. License: CC-BY-4.0.
@misc{iil_note_snvc8t1q,
author = {{iinventedlight}},
title = {{Kubernetes imagePullPolicy, digests and ImagePullBackOff}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-image-pull-policy/},
note = {Permanent ID iil:note:snvc8t1q. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-image-pull-policy.table.json (table; CC-BY-4.0)
- kubernetes-image-pull-policy.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-image-pull-policy.md.