Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you secure `docker login` on CI runners?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer

Use OIDC-issued short-lived credentials (aws-actions/amazon-ecr-login, GitHub's GITHUB_TOKEN for GHCR), --password-stdin, a per-job DOCKER_CONFIG temp directory, and docker logout in a cleanup step on shared runners. Avoid long-lived tokens in repo secrets and never echo them. Credential helpers beat plaintext config.json.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain