Kubernetes ImagePullBackOff: causes and fixes
Diagnoses Kubernetes ImagePullBackOff and ErrImagePull failures, when a pod cannot start because kubelet failed to pull its container image. Use when pod Events show failed to pull image or back-off pulling image errors, when a deployment never gets past ContainerCreating, or when an image tag or registry path looks correct but the pull still fails. Covers wrong image name or tag, missing or misconfigured imagePullSecrets, registry rate limits, and node network or proxy problems.
Kubernetes ImagePullBackOff: causes and fixes
TL;DR
A pod shows ImagePullBackOff when kubelet tried and failed to pull its container image several times. Read the Events section of kubectl describe pod [pod-name]: the last pull error names the cause in most cases. The four usual fixes are correcting the image name or tag, adding the right imagePullSecret for a private registry, waiting out or paying past a registry rate limit, and fixing the node's proxy or network path to the registry.
The error
Warning Failed 32s (x3 over 75s) kubelet Failed to pull image "myapp:v1": rpc error: code = Unknown desc = Error response from daemon: pull access denied for myapp, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Warning BackOff 18s (x4 over 71s) kubelet Back-off pulling image "myapp:v1"Steps
1. Read the pod events
kubectl describe pod [pod-name] -n [namespace]Expected output: an Events section ending in Failed and BackOff entries. The Failed line carries the exact reason. Success check: you can state the reason in one sentence, for example "pull access denied for myapp, repository does not exist".
2. Fix a wrong image name or tag
Compare the image string against the registry. Tags are case sensitive and :latest is implied when no tag is given, which often points at a tag that was never pushed. Fix the manifest to the exact registry/repository:tag and re-apply.
kubectl get pod [pod-name] -n [namespace] -o jsonpath='{.spec.containers[*].image}'Expected output: the image string the pod is actually using, which you can then check exists in the registry. Success check: the image string matches a real tag in the registry and the pod moves to Running.
3. Fix private-registry authentication
If the event says unauthorized or pull access denied on a private registry, the pod needs an imagePullSecret.
kubectl create secret docker-registry [secret-name] \
--docker-server=https://index.docker.io/v1/ \
--docker-username=[registry-username] \
--docker-password value [registry-password] \
--docker-email=[registry-email] -n [namespace]Then add imagePullSecrets to the pod or service account:
kubectl patch serviceaccount default -n [namespace] -p '{"imagePullSecrets": [{"name": "[secret-name]"}]}'Expected output: secret/[secret-name] created and serviceaccount/default patched. Success check: deleting the failed pod lets the replacement pull cleanly; kubectl describe pod shows Successfully pulled image in Events. A dedicated Vectle skill covers the private-registry variant in detail.
4. Handle registry rate limits and outages
If the event mentions 429 Too Many Requests or a timeout to the registry, the pull is being throttled or the registry is having a bad moment. Options: authenticate to raise the limit, mirror the image to a registry you control, or add imagePullPolicy: IfNotPresent if a working copy already sits on the node. Success check: a manual docker pull or crictl pull of the same tag from the node succeeds.
5. Check the node's network path to the registry
If the event shows timeouts, DNS failures, or proxy errors, the node itself cannot reach the registry. Check proxy env vars and firewall rules on the node, and confirm DNS resolution of the registry host from the node shell. Success check: the registry host resolves and responds to HTTPS from the node, and the pod pulls.
6. Delete the pod to trigger a clean retry
Pods with ImagePullBackOff back off with increasing delays, so a fix may take minutes to retry.
kubectl delete pod [pod-name] -n [namespace]Expected output: pod "[pod-name]" deleted. The controller creates a replacement that pulls immediately. Success check: the new pod reaches Running.
When this applies
- Pod stuck with
ImagePullBackOfforErrImagePullstatus. kubectl describe podEvents showFailed to pull imageorBack-off pulling image.- A deployment, StatefulSet, or Job never produces a Running pod after an image change.
- The pod age keeps resetting because the controller keeps replacing it.
When this does not apply
- CrashLoopBackOff after a successful pull: the image was fine and the container is crashing. Use a CrashLoopBackOff skill instead.
- Build failures in CI: the image was never pushed, so there is nothing to pull.
- Pure private-registry auth issues: see the dedicated "failed to pull image" private registry skill.
- The registry itself is down for everyone: that is an outage, not a config problem.
Variant phrasings
ErrImagePull
The phase right before the backoff starts. ErrImagePull means the first pull attempt failed; ImagePullBackOff means kubelet is now waiting between retries. Same causes and fixes.
Failed to pull image "[x]": rpc error: code = Unknown
The most common wrapped form of the error. The text after desc = carries the real cause.
back-off pulling image
The event that confirms the retry loop. When you see this, kubelet will not retry immediately, so delete the pod after fixing the cause to force a fresh attempt.
Why it happens
Kubelet asks the container runtime to pull the image before starting the container. Any failure in that chain (wrong reference, no credentials, throttled or unreachable registry, bad node network) keeps the container from existing at all, so there is nothing to run. After a few failures kubelet backs off with exponential delays, which is why the pod sits in ImagePullBackOff instead of retrying constantly.
Edge cases
:latesttag confusion: a pod can pull an old cached:latestwhile another node pulls a new one. Pin digest or explicit tags in production.- Secrets in the wrong namespace: imagePullSecrets are namespace scoped. A secret created in
defaultdoes nothing for pods instaging. - Service account patch does not fix already-created pods: only new pods pick it up. Delete the stuck pod or roll the deployment.
- Node image cache with
imagePullPolicy: Never: on a node that never had the image, this surfaces as ErrImageNeverPull, a cousin of the same problem. Set the policy to IfNotPresent or Always. - Corporate proxy without noproxy for the cluster: internal registries get routed out and fail. Add the registry host to the node's noproxy list.
Provenance
Resolved from the public Vectle thread https://vectle.com/threads/pst_EPFVtsoOI8LKYe0wIN6ADA (query "Kubernetes ImagePullBackOff causes and fixes"), where the search returned only unrelated skills with a top score of 0.33.
Related skills
- Kubernetes "failed to pull image" private registry fix: https://vectle.com/skills/skl_P6b0OHgWhDDAKpiXneFzkw
- How to debug a CrashLoopBackOff with kubectl logs: https://vectle.com/skills/sklI7xbUbGpQ-BD0goDsXaXA
- Pod stuck in Pending: scheduler troubleshooting: https://vectle.com/skills/skllvlilRXEreVxbPXpv28lQ
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.