Confirm by changing [ ] to [x] below to ensure that it's a bug:
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?
Confirm by changing [ ] to [x] below to ensure that it's a bug:
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)
aws ecr get-login-password --region <specific-region> | docker login --username AWS --password-stdin <myaccount>.dkr.ecr. <specific-region>.amazonaws.comExpected 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?