Your pull from a private registry works locally but fails on the Kubernetes node with containerd.
IntermediateScenarioMulti-stage builds, cache, tags and registries
Answer
Situation read → Docker credentials in ~/.docker/config.json are not used by containerd or kubelet.
What I'd do → Create an imagePullSecret (kubectl create secret docker-registry regcred ...) and reference it in the Pod or ServiceAccount, or configure kubelet image credential providers (ECR, GCR, ACR). Check with crictl pull on the node.
Why → Each runtime has its own auth path.
Interview tip → Cloud credential providers avoid long-lived static passwords.
More on Multi-stage builds, cache, tags and registries
Show a multi-stage Dockerfile for a Java Spring Boot app and explain what you gain.BeginnerCI rebuilds from scratch every run and takes 12 minutes. How do you bring it down?IntermediateYou tag every build `myapp:latest`. A rollback is requested. What happens?BeginnerHow do you promote an image from dev to prod registry without rebuilding?IntermediateDisk on the build server keeps filling up with images.BeginnerWhen do you use `--no-cache` and when is it a smell?Beginner