How do `docker login` credentials get stored?
IntermediateConceptRuntime Stack, OCI & Registries
Answer
In ~/.docker/config.json: base64 auth (not encrypted!) by default, or delegated to a credential helper (osxkeychain, pass, ecr-login) via credsStore/credHelpers. In CI use --password-stdin and short-lived tokens.
echo "$TOKEN" | docker login ghcr.io -u USER --password-stdin
More on Runtime Stack, OCI & Registries
What is the architecture of Docker Engine?IntermediateWhat is the OCI and what specs does it define?IntermediateWhat does `runc` do?IntermediateWhat is containerd and how does it relate to Docker and Kubernetes?IntermediateWhat are `ctr`, `crictl` and `nerdctl`?IntermediateWhat is CRI-O?Intermediate