Kubernetes ImagePullBackOff: Causes, Diagnosis & Fixes

Kubernetes ImagePullBackOff: Causes, Diagnosis & Fixes

A Kubernetes workload can be successfully submitted to a cluster and scheduled onto a node, yet its container may never start. One common reason is the ImagePullBackOff status.

This error appears when Kubernetes cannot retrieve the container image required by a Pod. The problem may involve an incorrect image name, a missing tag, private registry credentials, network connectivity, registry rate limits, or image compatibility.

Simply restarting the Pod usually does not solve the underlying issue. Kubernetes will continue retrying the image pull, with an increasing delay between attempts, until the problem is corrected.

This guide explains what ImagePullBackOff means, how to identify the exact failure from Kubernetes events, and how to fix common image pull problems in production and development clusters.

What Is ImagePullBackOff?

ImagePullBackOff is a Kubernetes container waiting state indicating that Kubernetes could not pull the image needed to start a container.

A Pod may display something similar to:

NAME                 READY   STATUS             RESTARTS   AGE
web-7f9c88b6d7-abc12 0/1     ImagePullBackOff   0          3m

The Pod may already have been scheduled onto a node, but the container cannot start because its image is unavailable locally and the image pull has failed.

ImagePullBackOff vs ErrImagePull

These two statuses are related, but they describe different stages of the image pull failure.

StatusMeaning
ErrImagePullAn image pull attempt failed.
ImagePullBackOffKubernetes is delaying another attempt after repeated failures.
InvalidImageNameThe specified image reference is invalid.
ImageInspectErrorThe container runtime encountered a problem inspecting the image.

The BackOff part means Kubernetes increases the delay between retries. The documented maximum delay is five minutes.

The important point is that ImagePullBackOff is a symptom, not the root cause. The actual reason is normally found in the Pod’s Events.

See the official Kubernetes container images documentation.

How to Diagnose the Error

Start by identifying the affected Pod and examining its events.

1. List Pods

Check workloads in the affected namespace:

kubectl get pods -n production

To inspect Pods across all namespaces:

kubectl get pods -A

Look for ImagePullBackOff, ErrImagePull, or another image-related status.

2. Describe the affected Pod

Run:

kubectl describe pod POD_NAME -n production

Replace POD_NAME with the actual Pod name.

Scroll to the Events section.

For example:

Events:
  Type     Reason     Age   From      Message
  ----     ------     ---   ----      -------
  Normal   Scheduled  2m    scheduler Successfully assigned ...
  Warning  Failed     1m    kubelet   Failed to pull image ...
  Warning  BackOff    30s   kubelet   Back-off pulling image ...

The exact error message is more useful than the status displayed by kubectl get pods.

3. Retrieve recent namespace events

You can also inspect recent events directly:

kubectl get events -n production \
  --sort-by='.metadata.creationTimestamp'

This helps identify whether the problem began after a deployment, registry change, secret update, or node configuration change.

4. Check the image referenced by the Pod

Retrieve the image reference:

kubectl get pod POD_NAME -n production \
  -o jsonpath='{.spec.containers[*].image}{"\n"}'

For multiple containers, inspect their image references individually through the Pod specification.

For Deployments, also check the Pod template:

kubectl get deployment web -n production -o yaml

Verify the registry hostname, repository path, image name, and tag.

Fix an Incorrect Image Name or Tag

An incorrect image reference is one of the most straightforward causes of ImagePullBackOff.

For example:

containers:
  - name: web
    image: nginx:99.99

If the specified tag does not exist in the registry, Kubernetes cannot download the image.

Other common mistakes include:

  • Misspelled repository names.
  • Incorrect registry hostnames.
  • Missing repository paths.
  • A tag that was never pushed.
  • A tag removed by registry retention policies.
  • A CI/CD pipeline that builds an image but publishes a different tag.

How to fix it

First, inspect the image reference in the Deployment:

kubectl get deployment web -n production -o yaml

Then verify that the repository and tag actually exist in the intended registry.

Update the Deployment with a valid image:

kubectl set image deployment/web \
  web=nginx:1.27 \
  -n production

This is an illustrative command. Use the actual image, container name, and approved version for your environment.

Check the rollout:

kubectl rollout status deployment/web -n production

For production deployments, prefer explicit version tags or image digests rather than relying on a moving latest tag.

Fix Private Registry Authentication Errors

Private registries require valid credentials before Kubernetes can download protected images.

A Pod may display errors such as:

unauthorized: authentication required

or:

pull access denied

Another common message is:

FailedToRetrieveImagePullSecret

This usually indicates that Kubernetes cannot retrieve the referenced Secret.

1. Check whether the image pull Secret exists

List Secrets in the Pod’s namespace:

kubectl get secrets -n production

Check the referenced Secret:

kubectl get secret regcred -n production

Remember that image pull Secrets must exist in the same namespace as the Pod.

2. Create a registry Secret

One approach is to import existing Docker registry credentials.

First, ensure that your Docker configuration file contains usable registry authentication information. Some credential-store configurations keep credentials outside the file, so importing such a file alone may not be sufficient.

Then create a Kubernetes Secret:

kubectl create secret generic regcred \
  --from-file=.dockerconfigjson="$HOME/.docker/config.json" \
  --type=kubernetes.io/dockerconfigjson \
  -n production

Use the appropriate credentials file for your registry.

3. Attach the Secret to the Pod

Add the imagePullSecrets field to the Pod specification.

Example:

apiVersion: apps/v1
kind: Deployment

metadata:
  name: web
  namespace: production

spec:
  replicas: 1

  selector:
    matchLabels:
      app: web

  template:
    metadata:
      labels:
        app: web

    spec:
      imagePullSecrets:
        - name: regcred

      containers:
        - name: web
          image: ghcr.io/example/web:v1.2.3
          ports:
            - containerPort: 8080

Replace the example image with your actual private image.

The Secret must be in the same namespace as the Pod. The registry credentials must also grant permission to pull the requested repository.

Kubernetes supports this approach through its imagePullSecrets mechanism. See Pull an Image from a Private Registry.

Security note: Do not publish registry passwords or access tokens in YAML files, Git repositories, screenshots, or shell history. Protect Kubernetes Secrets with appropriate RBAC and encryption-at-rest controls.

Resolve Registry Rate Limits

Some registries limit the number of image pulls made by unauthenticated or lower-tier accounts.

A registry may return:

429 Too Many Requests

This can occur when multiple Pods or nodes repeatedly pull images from the same external registry.

How to fix it

Consider the following measures:

  1. Authenticate to the registry when required.
  2. Review the registry’s current rate-limit policy.
  3. Reduce unnecessary image pulls.
  4. Use an approved internal registry mirror or caching solution.
  5. Avoid unnecessarily recreating Pods that already have a valid image configuration.

If the deployment is urgent, use a previously tested image that is known to exist and is accessible to the cluster.

Repeatedly deleting and recreating Pods does not remove registry rate limits.

Fix DNS, Network and TLS Problems

A registry may be available publicly but unreachable from a Kubernetes node.

This can happen when the node cannot resolve the registry hostname, when outbound traffic is blocked, or when a proxy or TLS configuration is incorrect.

Common error messages

Error messageLikely cause
no such hostDNS resolution failure
i/o timeoutNetwork or firewall issue
connection refusedRegistry endpoint or network service unavailable
x509: certificate signed by unknown authorityRegistry certificate is not trusted
TLS handshake timeoutTLS or network path problem

Check the registry hostname

Confirm that the registry hostname in the image reference is correct.

If the hostname is invalid or the registry’s DNS record cannot be resolved from the node, the image pull cannot succeed.

Check node connectivity

Image downloads are performed by the node’s kubelet and container runtime, not by the application container that has not started yet.

Investigate the affected node’s:

  • DNS resolver configuration.
  • Outbound firewall rules.
  • Proxy configuration.
  • Registry endpoint availability.
  • TLS certificate trust configuration.

For practical Linux connectivity checks using dig, curl, ping, ss, and tcpdump, see our Linux Network Tools Guide.

For broader host-level service management, network configuration, and server troubleshooting, see the Linux Server Administration Complete Guide.

For managed Kubernetes platforms, use the provider’s node and image-pull troubleshooting tools.

Do not disable TLS verification as a shortcut. Configure the correct trusted certificate authority for the container runtime and registry.

See Google’s GKE image pull troubleshooting guide and Microsoft’s AKS image pull troubleshooting documentation.

Check Image Pull Policy and Architecture

Sometimes the image exists, but Kubernetes is not using the pull behavior or image variant you expect.

Understand imagePullPolicy

Kubernetes supports three principal image pull policies:

PolicyBehavior
AlwaysThe runtime is asked to resolve the image reference whenever a container launches.
IfNotPresentPull the image only when it is not already present locally.
NeverDo not attempt to pull the image.

For example:

containers:
  - name: web
    image: nginx:1.27
    imagePullPolicy: IfNotPresent

The Never policy can cause startup failure when the image does not already exist on the node.

Also note that the default policy is selected when the Pod template is first created. Changing an image tag later does not automatically recalculate an already-set imagePullPolicy.

Kubernetes documents these rules in its image pull policy reference.

Check CPU architecture compatibility

An image may exist in the registry but not support the node’s CPU architecture.

For example, an image built only for linux/arm64 may not run on an amd64 node.

An event may contain:

no matching manifest for linux/amd64

Check the node architecture:

kubectl get nodes \
  -o custom-columns=NAME:.metadata.name,ARCH:.status.nodeInfo.architecture

Then verify that the image registry provides a compatible image manifest.

For multi-architecture deployments, build and publish an image that supports the architectures used by your cluster.

Verify That the Fix Worked

After correcting the image reference, credentials, network, or registry configuration, verify that Kubernetes can retrieve the image and start the container.

1. Watch the Pod status

kubectl get pods -n production -w

The Pod should progress toward Running when the image is successfully pulled and the container starts.

2. Check rollout status

For a Deployment:

kubectl rollout status deployment/web -n production

3. Inspect the Pod again

kubectl describe pod POD_NAME -n production

Confirm that new image-pull failures are no longer appearing in the Events section.

4. Check application logs

Once the container has started:

kubectl logs POD_NAME -n production --tail=100

For multi-container Pods, specify the container:

kubectl logs POD_NAME -c web -n production --tail=100

After the image pull succeeds, application logs may reveal a different problem that prevents the container from becoming ready. For Docker-based environments, our guide on Docker Logs Taking Too Much Disk Space explains how to inspect container logs and configure log rotation.

Remember that a successful image pull does not guarantee application readiness. The container may still fail because of configuration, resource, or application-level problems.

5. Roll back an unsuccessful deployment when necessary

If a new deployment introduced the image pull failure and the previous version was known to work, consider reverting it:

kubectl rollout undo deployment/web -n production

Then verify:

kubectl rollout status deployment/web -n production

Only use this when the previous ReplicaSet contains a working image and the rollback is appropriate for the application.

Common Mistakes to Avoid

Restarting the Pod without fixing the image reference

Deleting a Pod may cause its controller to create another Pod with the same invalid image configuration. The pull failure will continue.

Assuming the imagePullSecret is cluster-wide

Image pull Secrets are namespace-scoped. A Secret in the default namespace is not automatically available to a Pod in production.

Using a local Docker login as proof that Kubernetes can pull an image

A successful docker login on your workstation does not automatically provide registry credentials to Kubernetes nodes.

Ignoring the exact Events message

The status alone does not identify whether the problem is authentication, a missing tag, DNS, a certificate, or rate limiting.

Disabling TLS verification

An untrusted registry certificate should be addressed by configuring the appropriate certificate authority, not by weakening security controls.

Using latest without version control

Mutable image tags make deployments less predictable and can complicate rollbacks. Use explicit versions or digests for controlled releases.

Frequently Asked Questions

What does ImagePullBackOff mean in Kubernetes?

It means Kubernetes cannot retrieve the container image required by a Pod. The kubelet retries the pull with an increasing delay between attempts.

What is the difference between ErrImagePull and ImagePullBackOff?

ErrImagePull indicates a failed image pull attempt. ImagePullBackOff indicates Kubernetes is delaying another attempt after the failure.

How do I fix ImagePullBackOff for a private Docker image?

Check that the image reference is correct, the registry credentials are valid, and a suitable imagePullSecret is attached to the Pod. The Secret must exist in the Pod’s namespace.

Why does Kubernetes report unauthorized when pulling an image?

The registry may be receiving missing, expired, or incorrect credentials, or the account may not have permission to access the requested repository.

Can deleting a Pod fix ImagePullBackOff?

Not by itself. A replacement Pod will generally use the same image configuration. Fix the underlying registry, authentication, image, or connectivity problem first.

How do I find the exact reason for ImagePullBackOff?

Run:

kubectl describe pod POD_NAME -n NAMESPACE

Inspect the Events section and read the exact message associated with the failed image pull.

Conclusion

Kubernetes ImagePullBackOff is a common container deployment problem, but its root cause can vary significantly between environments.

The most reliable troubleshooting approach is to inspect Pod events first, verify the image reference, check private registry credentials, and investigate node-level DNS, network, and TLS connectivity when necessary.

Once the underlying problem is corrected, monitor the Pod and Deployment until the image is successfully pulled and the application becomes ready.

A disciplined troubleshooting process helps avoid unnecessary restarts, deployment delays, and insecure registry workarounds.

Leave a Reply

Your email address will not be published. Required fields are marked *