ECR: `denied: Your authorization token has expired. Reauthenticate and try again.`
BeginnerTroubleshootingRegistry, pull and push errors
Answer
Likely causes → ECR tokens last 12 hours.
Diagnose → Check when you logged in.
Fix →
aws ecr get-login-password --region ap-south-1 | \
docker login --username AWS --password-stdin 123456789012.dkr.ecr.ap-south-1.amazonaws.com
Prevent → Use amazon-ecr-credential-helper or log in at the start of each job.
More on Registry, pull and push errors
`Error response from daemon: pull access denied for X, repository does not exist or may require 'docker login'`Intermediate`manifest for myapp:1.2 not found: manifest unknown: manifest unknown`Beginner`no matching manifest for linux/arm64/v8 in the manifest list entries`Intermediate`x509: certificate signed by unknown authority` on `docker pull` from a private registry.Intermediate`http: server gave HTTP response to HTTPS client`Beginner`unauthorized: authentication required` on push to GitHub Container Registry.Intermediate