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
Try this:
For a public registry on ECR you use
us-east-1region for password.The principle difference to your original command is that the URI is just
public.ecr.awswith no/or anything after.