# ImagePullBackOff: what each error message actually means

`ImagePullBackOff` is two facts glued together. The first is that the container runtime on the node tried to pull the image and failed: that failure is reported once as `ErrImagePull`. The second is that the kubelet is now waiting before it tries again, with a delay that doubles after each failure up to five minutes. Neither part says *why* the pull failed.

The reason is always there, though. It is in the pod's events, written by the kubelet in the words the registry or the runtime used, and it falls into one of six groups. Read the message and you know which group you are in before you change anything.

## Read the message, not the status

The status column is the least informative place to look. The event is the most:

```bash
kubectl -n <namespace> describe pod <pod> | sed -n '/Events:/,$p'
```

You are looking for a `Failed` event from the kubelet that starts with `Failed to pull image`. The text after the image name is the registry's or the runtime's own answer, and it is what the rest of this article sorts. If you have several pods failing the same way, one is enough to read:

```bash
kubectl -n <namespace> get events --field-selector reason=Failed --sort-by=.lastTimestamp | tail -5
```

## 1. The image or tag does not exist

Messages containing `not found`, `manifest unknown` or `repository does not exist` mean the registry answered and said there is no such thing. The usual causes are a typo in the image name, a tag that was never pushed (a CI job that failed after the deploy was templated), or a tag that was deleted by a retention policy.

Check it from your own machine, with the exact string from the pod spec:

```bash
kubectl -n <namespace> get pod <pod> -o jsonpath='{.spec.containers[*].image}'
skopeo inspect docker://<image>   # or: crane manifest <image>
```

If the image exists from your machine but not from the cluster, you are not in this group: go to credentials or network below.

## 2. The registry refused the credentials

`pull access denied`, `401 Unauthorized`, `403 Forbidden` and `authorization failed` mean the registry wanted credentials the node did not present, or rejected the ones it did. Private images need an `imagePullSecrets` entry, either on the pod spec or on its ServiceAccount, and the details that go wrong are consistent:

- The Secret is in a different namespace. Pull secrets are namespaced; the pod can only use one in its own namespace.
- The Secret has the wrong type. It has to be `kubernetes.io/dockerconfigjson`, and the registry host inside it has to match the image's registry exactly.
- The pod's ServiceAccount is not the one you added the secret to.
- The token expired. Some registries issue short-lived tokens, so a secret that worked at deploy time fails hours later when a pod is rescheduled.

```bash
kubectl -n <namespace> get pod <pod> -o jsonpath='{.spec.imagePullSecrets}{"\n"}{.spec.serviceAccountName}'
kubectl -n <namespace> get secret <secret> -o jsonpath='{.type}'
```

A public image that suddenly returns `401` is usually a typo in the repository path: many registries answer "unauthorized" rather than "not found" for repositories that do not exist, so as not to reveal which private ones do.

## 3. The registry is rate limiting you

`toomanyrequests` or an HTTP `429` means the registry served you, just not this time. Docker Hub limits pulls by anonymous and free accounts, and a whole cluster behind one NAT address counts as one client. It shows up after a scale-out or a node replacement, when many nodes pull the same images at once.

The durable fixes are authenticated pulls, a pull-through cache or mirror inside your network, or copying the images you depend on into your own registry. Retrying harder makes it worse.

## 4. The image exists, but not for this node's architecture

`no matching manifest for linux/arm64` (or `amd64`) means the tag exists but was built for another CPU architecture. It appears the day someone adds ARM nodes to a cluster, or schedules onto them for the first time. A multi-architecture image lists one manifest per platform; check which platforms the tag actually has:

```bash
skopeo inspect --raw docker://<image> | jq '.manifests[].platform'
```

Then either publish the missing architecture or keep the workload off those nodes with a `nodeSelector` on `kubernetes.io/arch`.

## 5. The node cannot reach the registry

`dial tcp: lookup <host>: no such host`, `i/o timeout`, `connection refused` and `x509: certificate signed by unknown authority` are network and trust problems, and the important detail is *where* they happen: the pull is done by the container runtime on the node, not inside your pod. A registry that resolves from your laptop or from a debug pod can still be unreachable from the node, because of node DNS, an egress firewall, a proxy the runtime does not know about, or a private registry whose CA certificate the runtime does not trust.

Test from the node itself, through the same runtime the kubelet uses:

```bash
crictl pull <image>
```

If that fails with the same message, the fix is in the node's configuration, not in the manifest.

## 6. The node ran out of disk

`no space left on device` during a pull means the node's image filesystem is full. The kubelet garbage-collects unused images when disk usage crosses its threshold, but a node that runs many large images, or one with a small root disk, can fill faster than collection frees it. The same node usually carries a `DiskPressure` condition, visible in `kubectl describe node`.

## Two things that look like pull failures but are not

**A tag that moved.** If an image uses a mutable tag such as `latest` and the pull *succeeds*, two nodes can still be running different images under the same name, pulled at different times. Pods behave differently by node, and nothing reports an error. Pinning images by digest (`image@sha256:...`) removes the question.

**`imagePullPolicy`.** A tag of `latest` or no tag at all defaults to `Always`, so every pod start pulls, and every start fails while the registry is unreachable. Other tags default to `IfNotPresent`, so pods on nodes that already have the image keep starting, and the failure appears only on new nodes. That is why an outage of this kind often looks partial.

## A checklist you can keep

1. `describe pod` events: copy the text after `Failed to pull image`.
2. `not found` or `manifest unknown`: check the exact image string and that the tag exists.
3. `401`, `403`, `pull access denied`: secret namespace, type, registry host, ServiceAccount, token age.
4. `toomanyrequests` or `429`: authenticate, mirror, or copy the image in.
5. `no matching manifest`: the image lacks this node's architecture.
6. `no such host`, `timeout`, `x509`: test with `crictl pull` on the node.
7. `no space left on device`: the node's disk, not the image.

## Reading it in the incident record

An image pull failure is one of the few incidents where the first event usually contains the whole answer. What makes it slow in practice is that it arrives as many alerts at once, one per pod and replica, often during a deploy that changed other things too. AlertiGate groups those alerts into one incident, and its investigation reads the pod's events and the rollout history and cites each read, so the question "was it the deploy?" is answered by a record you can open rather than by memory.

## Related failures

A pod that never gets as far as pulling may be [stuck in Pending, and the scheduler will say why](https://alertigate.com/blog/kubernetes-pod-pending-unschedulable/). A pod whose image pulls fine and then keeps exiting is a different problem with its own order of checks: [CrashLoopBackOff, without guessing](https://alertigate.com/blog/debug-crashloopbackoff-kubernetes/). And the general method behind all of these, stating the causes and eliminating them on evidence, is in [root cause analysis for Kubernetes incidents](https://alertigate.com/blog/kubernetes-root-cause-analysis/).

*AlertiGate is a free, self-hosted AI SRE for Kubernetes that investigates alerts like this one with evidence you can re-run: [try it](https://alertigate.com/beta).*

*This article was written with AI assistance. It first appeared on [alertigate.com](https://alertigate.com/blog/kubernetes-imagepullbackoff/).*

