Skip to content

Troubleshooting guide

Kubernetes ImagePullBackOff: causes and how to fix it

ImagePullBackOff means the node could not download the container image and is waiting before it tries again. The exact reason is in the pod's events.

3 min read9 sectionsUpdated

On this page

Key points

  • kubectl describe pod shows the real error in its Events section.
  • A wrong tag or a typo is the most common cause.
  • Private registries need an imagePullSecret in the pod's namespace.
  • Docker Hub rate limits appear on busy shared clusters.

What it means

The kubelet asks the container runtime to pull the image. The first failure appears as ErrImagePull. Kubernetes then retries with exponential backoff up to five minutes, and the status becomes ImagePullBackOff. So no container has started, and application logs are empty: kubectl logs cannot help here.

Common causes

  • The image or tag does not exist, from a typo or a CI pipeline that failed before pushing.
  • Authentication failure. A private registry without an imagePullSecret, or an expired token.
  • A secret in the wrong namespace. Secrets are namespaced, so one in default does not help a pod in prod.
  • Registry rate limits such as Docker Hub's anonymous pull limit, shared across a NAT address.
  • Architecture mismatch. An amd64 image on arm64 nodes gives "no matching manifest".
  • Node networking: no route or DNS to the registry, or a blocking network policy or proxy.

Diagnose it

The event message is specific: "not found" points to the name, "unauthorized" to credentials, and "toomanyrequests" to rate limits.

bash
# The event that explains the failure
kubectl describe pod my-pod -n prod | sed -n '/Events:/,$p'

# Exact image the pod requests, and its pull secrets
kubectl get pod my-pod -n prod -o jsonpath='{.spec.containers[*].image}{"\n"}{.spec.imagePullSecrets}{"\n"}'

# Does the secret exist here?
kubectl get secret regcred -n prod

# Does the image exist, and for which architectures?
docker manifest inspect registry.example.com/app:1.4.2 | grep architecture

Fixes

Correct the tag, and prefer immutable version tags over latest. Create the secret in the namespace that needs it:

kubectl create secret docker-registry regcred --docker-server=registry.example.com --docker-username=ci --docker-password=TOKEN -n prod

Then reference it in the pod spec or attach it to the service account. Build multi-architecture images if your nodes vary. Use a pull-through cache or mirror to avoid public registry limits, and use short-lived credential helpers for registries like ECR, whose tokens expire after 12 hours.

Catch it automatically

A rollout stuck on a bad image can leave the old pods serving traffic, so nothing looks broken until the next node drain. Alert on any pod in ImagePullBackOff for more than a few minutes, and make your deployment pipeline fail when kubectl rollout status times out. Infrastructure monitoring shows these pods across the cluster.

Frequently asked questions

What is the difference between ErrImagePull and ImagePullBackOff?

ErrImagePull is the failure itself. ImagePullBackOff means Kubernetes is waiting before the next retry.

How often does Kubernetes retry?

The delay grows exponentially up to a five-minute limit, and it keeps retrying indefinitely.

Why does it work on some nodes only?

Those nodes may already hold the image in their cache, or have a different architecture or network path.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.