Private Registry Authentication
Cheat sheet · https://pcornel.dk/topic.php?topic=6125
Answer
Private registry authentication: clients log in with credentials or tokens; Kubernetes uses imagePullSecrets or node/cloud identity (IRSA, workload identity) to pull from private registries.
Remember
Secrets must be in the same namespace as the pod and of type kubernetes.io/dockerconfigjson. Tokens expire (ECR 12 h). Prefer cloud identities over static passwords.
First checks
docker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
Commands
docker login registry.example.compodman login
Verify in this order
pod → imagePullSecret/identity → registry auth → pull
Where it usually breaks
A secret in another namespace is not usable.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6125