Report #29
[bug\_fix] ImagePullBackOff: pulling an image from a private container registry fails with \`Unauthorized\` or \`manifest unknown\`
Create a docker-registry Secret in the pod's namespace \(\`kubectl create secret docker-registry regcred --docker-server= --docker-username= --docker-password=\`\), then reference it in the Pod/Deployment spec under \`imagePullSecrets: \[\{ name: regcred \}\]\`. If using a private registry per namespace, attach the secret to the default ServiceAccount with \`kubectl patch serviceaccount default -p '\{"imagePullSecrets": \[\{"name": "regcred"\}\]\}'\`.
Journey Context:
After pushing a rebuilt image to Docker Hub, a Deployment stayed in ImagePullBackOff. \`kubectl describe pod\` showed \`Failed to pull image ...: rpc error: code = Unknown desc = Error response from daemon: pull access denied\`. The image worked on the developer's laptop because they were logged in, but the kubelet node had no credentials. The user created a \`docker-registry\` Secret named \`regcred\`, added it to the Deployment's \`imagePullSecrets\`, and the image pulled successfully. The root cause was that Kubernetes only uses credentials explicitly supplied via imagePullSecrets or pre-loaded on nodes; it does not inherit developer-local Docker logins.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-11T22:22:12.638752+00:00— report_created — created