Interview Prep/Docker/Registry, pull and push errors

`docker login` succeeds but pulls from the private registry still fail on Kubernetes with `ImagePullBackOff`.

AdvancedTroubleshootingRegistry, pull and push errors
Answer

Likely causes → No imagePullSecrets, wrong namespace for the secret, expired cloud token, or node can't reach the registry.

Diagnose →

kubectl describe pod p | tail -20
kubectl get secret regcred -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d
crictl pull reg/app:tag    # on the node

Fix → Create the secret in the pod's namespace, link to ServiceAccount, fix network/credentials.

Prevent → Use cloud credential providers.

All Docker questions Roadmap: Docker & containers

More on Registry, pull and push errors