skip to Main Content

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

  1. installed docker desktop.
  2. locally built an image .
  3. created a repository on aws ECR.
  4. ran aws configure.
  5. 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


  1. Chosen as BEST ANSWER

    I was able to solve it by removing these from my computer

    C:ProgramFilesDockerDockerresourcesbindocker-credential-desktop.exe C:ProgramFilesDockerDockerresourcesbindocker-credential-wincred.exe

    After that I was able to successfully login (I do see some warning) , but for now it's working . please see the message.

    failed to get console mode for stdin: The handle is invalid. WARNING! Your password will be stored unencrypted in C:UsersUsername.dockerconfig.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store

    Login Succeeded


  2. Try this (replaced ecr-public with ecr):

    aws ecr get-login-password --region us-east-1
    

    Does that yield a password or an error?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search