-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
dockerIssue involves the AWS CLI Docker container imageIssue involves the AWS CLI Docker container imagedocumentationThis is a problem with documentation.This is a problem with documentation.ecrp2This is a standard priority issueThis is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.windows
Description
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- I've gone though the User Guide and the API reference
- I've searched for previous similar issues and didn't find any solution
Describe the bug
Authenticate Docker to an Amazon ECR registry with get-login-password fails with the following error:
Error saving credentials: error storing credentials - err: exit status 1, out: 'The stub received bad data.'
SDK version number
aws-cli/2.0.56 Python/3.7.7 Windows/10 exe/AMD64
Platform/OS/Hardware/Device
Windows 10 1909
Docker Desktop 2.4.0
To Reproduce (observed behavior)
- Have an ECR repository setup
- Authenticate docker to pull and push images from the repository using the authorization token:
aws ecr get-login-password --region <specific-region> | docker login --username AWS --password-stdin <myaccount>.dkr.ecr. <specific-region>.amazonaws.com
Expected behavior
Login should be successful
Additional context
I'm currently using an aws profile configured with AWS SSO
aws ecr get-login-password --region <specific-region> command alone succeed returning a token.
This token might be too big for docker login to accept?
paulriley, dougrday, patr00n, cjsimon, ltearno and 38 more
Metadata
Metadata
Assignees
Labels
dockerIssue involves the AWS CLI Docker container imageIssue involves the AWS CLI Docker container imagedocumentationThis is a problem with documentation.This is a problem with documentation.ecrp2This is a standard priority issueThis is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.windows