kubectl describe pod shows the exact pull error in Events.
What the error means
Before a container can run, the kubelet on the node asks the container runtime (containerd) to pull the image. If that fails, the pod shows ErrImagePull, and after repeated failures ImagePullBackOff, with growing waits between tries.
Unlike CrashLoopBackOff, your app has not run at all. The problem is between the node and the registry.
Read the real error first
kubectl describe pod <pod>
# Events, for example:
# Failed to pull image "myapp:v1.2": not found
# pull access denied, repository does not exist or may require authorization
# toomanyrequests: You have reached your pull rate limit
# dial tcp: lookup registry.example.com: no such host The message after "Failed to pull image" tells you which of the causes below it is.
Causes and fixes
| Message | Cause | Fix |
|---|---|---|
| not found / manifest unknown | Typo in the image name or the tag does not exist | Check the exact name and tag in the registry; avoid latest |
| pull access denied / unauthorized | Private registry, no credentials | Create an imagePullSecret and reference it |
| toomanyrequests | Docker Hub anonymous rate limit | Log in to Docker Hub or mirror images to your own registry (ECR, ACR, Artifact Registry) |
| no such host / i/o timeout | DNS or firewall: node cannot reach the registry | Check node DNS, proxy, NAT gateway or private endpoint |
| no matching manifest for linux/arm64 | Image built for another CPU type | Build a multi-arch image or use matching nodes |
Fix a private registry login, step by step
- Create the secret in the same namespace as the pod:
kubectl create secret docker-registry regcred --docker-server=<registry> --docker-username=<user> --docker-password=<token> -n <ns>. - Reference it in the pod spec under
spec.imagePullSecrets: [{name: regcred}], or attach it to the service account so every pod gets it. - On cloud clusters prefer the built-in way: give the EKS node role ECR read access, attach ACR to AKS (
az aks update --attach-acr), or grant the GKE node service account Artifact Registry Reader. - Delete the failing pod so the Deployment creates a new one:
kubectl delete pod <pod>. - Watch it:
kubectl get pods -wshould go from ContainerCreating to Running.
Test the pull from your laptop
Run docker pull <exact image:tag> with the same credentials. If it fails on your laptop too, the image name, tag or login is wrong. If it works on your laptop but not in the cluster, look at the node: network, DNS, proxy or node permissions.
Questions
What is the difference between ErrImagePull and ImagePullBackOff?
ErrImagePull is the first failed pull. ImagePullBackOff means it failed several times and Kubernetes is now waiting longer between tries. Same root cause.
Should I use the latest tag?
Avoid it in production. A fixed tag or digest (myapp@sha256:...) makes deployments repeatable and avoids surprises when the image changes.
Where must the imagePullSecret be?
In the same namespace as the pod. A secret in default does not help a pod in prod.