If you are using the Docker CLI, then use the docker login command to authenticate to an Amazon ECR registry. Use an authorization token that is provided by Amazon ECR and is valid for 12 hours. The GetAuthorizationToken API operation .