ErrImagePull
KubernetesERRORCommonPod LifecycleHIGH confidence

Failed to pull container image

What this means

Kubernetes is unable to retrieve the container image from the specified registry. This is a direct failure to pull, which often precedes an ImagePullBackOff state as Kubernetes begins to retry.

Why it happens
  1. 1Image name or tag is spelled incorrectly
  2. 2The image does not exist in the registry
  3. 3Authentication failure with the container registry
  4. 4Network issues preventing the node from reaching the registry
How to reproduce

A pod fails to start, and its status immediately shows ErrImagePull.

trigger — this will error
trigger — this will error
kubectl get pod my-pod

expected output

NAME     READY   STATUS         RESTARTS   AGE
my-pod   0/1     ErrImagePull   0          10s

Fix 1

Correct the image path in the deployment

WHEN The image name is wrong in the Pod or Deployment spec

Correct the image path in the deployment
kubectl edit deployment my-deployment

Why this works

Opens the deployment manifest in an editor to find and fix the 'image:' field. After saving, Kubernetes will attempt to pull the corrected image.

Fix 2

Verify registry credentials

WHEN The image is in a private registry and auth may be failing

Verify registry credentials
kubectl get secrets my-registry-secret -o yaml

Why this works

This allows you to inspect the secret to ensure it is correctly formatted and contains the right credentials, even though the data is base64 encoded.

What not to do

Delete the pod and redeploy without checking the image name

If the image name in the deployment manifest is wrong, the new pod will fail for the exact same reason.

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All Kubernetes errors