Skip to main content

ImagePullBackOff

ImagePullBackOff is a Kubernetes pod status meaning the kubelet cannot pull the container image and is retrying with growing delays. The cause is usually a wrong image name or tag, a missing image, missing registry credentials, or a registry the node cannot reach.

What it means

When a pull fails the pod first shows ErrImagePull. After repeated failures the kubelet backs off, up to about 5 minutes between retries, and the status becomes ImagePullBackOff. Both describe the same root problem. Retrying does not fix it.

flowchart TD F["ImagePullBackOff"] --> E["kubectl describe pod
read the event"] E --> Q{"Error message"} Q -->|"manifest unknown"| T["Wrong tag or image"] Q -->|"unauthorized"| A["Missing credentials"] Q -->|"no such host or timeout"| N["Network or DNS issue"] classDef start fill:#475569,color:#ffffff classDef decide fill:#FFEDD5,color:#1E293B classDef fix fill:#D1FAE5,color:#1E293B class F,E start class Q decide class T,A,N fix

Diagnose

Bash
kubectl describe pod <pod-name> -n production | grep -A 10 Events
kubectl get pod <pod-name> -n production -o jsonpath='{.spec.containers[*].image}'
Error message Cause Fix
manifest unknown Tag does not exist Fix tag or push the image
unauthorized Missing or expired credentials Create or refresh imagePullSecrets
pull access denied Wrong credentials or private repo Verify the secret
no such host DNS cannot resolve the registry Check node DNS and VPC
context deadline exceeded Network timeout Check routes, NAT, firewall

Private registry credentials

Bash
kubectl create secret docker-registry ecr-credentials \
--docker-server=123456789012.dkr.ecr.ap-south-1.amazonaws.com \
--docker-username=AWS \
--docker-password="$(aws ecr get-login-password --region ap-south-1)" \
-n production
YAML
spec:
imagePullSecrets:
- name: ecr-credentials
containers:
- name: api
image: 123456789012.dkr.ecr.ap-south-1.amazonaws.com/api:v2.5.1

ECR tokens expire after 12 hours. On EKS, attach the AmazonEC2ContainerRegistryReadOnly policy to the node role so nodes authenticate without a static secret.

Test from the node

Bash
crictl pull 123456789012.dkr.ecr.ap-south-1.amazonaws.com/api:v2.5.1
nc -zv registry.example.com 443
Common Mistake

Creating the pull secret in the default namespace. Secrets are namespaced and must exist where the pod runs.

Tip

Prefer node IAM roles or a credential helper over static, short-lived tokens.

Frequently Asked Questions

Why does Kubernetes back off instead of failing immediately?

Pull failures can be transient, such as rate limiting or a brief network problem, so the kubelet retries with increasing delay rather than giving up or hammering the registry.

What is the fastest way to find which cause applies?

Read the Events section of kubectl describe pod. The registry error text, such as manifest unknown or unauthorized, identifies the cause.

Is ImagePullBackOff the same as ErrImagePull?

They are two stages of the same failure. ErrImagePull is the failed attempt, and ImagePullBackOff is the waiting state between retries.

Found a mistake, an outdated step or a broken link?