Docker : Your authorization token has expired. Reauthenticate and try again – Solved

The error message “Your authorization token has expired. Reauthenticate and try again” suggests that your Docker login token for your Amazon ECR registry has expired and needs to be refreshed.

To login again and refresh the token, you can use the following command:

aws ecr get-login-password --region us-east-1 | sudo docker login --username AWS --password-stdin

Please replace us-east-1 with your actual AWS region and with your actual ECR registry URL.

Please remember to use sudo if your Docker installation requires elevated permissions.

After running this command, your Docker should be authenticated with ECR and you should be able to pull your image.

If you have installed and configured the Amazon ECR Credential Helper as described in the previous steps, Docker should be using it to authenticate with your ECR registry automatically, and you should not have to run the aws ecr get-login-password command regularly.

If you’re still facing issues, you might want to check that the repository actually exists in your ECR, and that your AWS account has the necessary permissions to pull images from it.

Docker : Not able to access other website or git inside a docker ? Solved
DNS resolution problem : Runner is unable to resolve the domain name ‘’
Git : Understanding the gitlab-ci.yml File in GitLab
Docker : Docker not able to connect to git , what could be the reason ?
Docker : Error saving credentials: error storing credentials – err: exec: “docker-credential-ecr-login” – Solved

Author: user

Leave a Reply