Pcornel
Containers · Images & Registries

Private Registry Authentication

Cheat sheet · https://pcornel.dk/topic.php?topic=6125

Back to the Topic

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 codes
  • docker logs <c> — container output
  • docker inspect <c> — config, mounts, network, state

Commands

docker login registry.example.com
podman 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

Confirmation

Confirm action

Continue?