I am trying to push my image from local to AWS ECR , but I get the below error in my terminal
failed to get console mode for stdin: The handle is invalid.
Error saving credentials: error storing credentials – err: exit status 1, out:not implemented
There are bunch of suggestions available on stack overflow or on google , but none of them worked for me .
I am using windows 11 .
Reproducible steps
- installed docker desktop.
- locally built an image .
- created a repository on aws ECR.
- ran aws configure.
- Tried this command to push the image
aws ecr-public get-login-password –region us-east-1 | docker login
–username AWS –password-stdin public.ecr.aws/xxxxxxx
2
Answers
I was able to solve it by removing these from my computer
After that I was able to successfully login (I do see some warning) , but for now it's working . please see the message.
Try this (replaced
ecr-public
withecr
):Does that yield a password or an error?