Getting error while pushing images to public ECR

0

I am trying to push images to Public ECR using the push commands given in the ECR. I am getting the below issue: Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out: The stub received bad data.``. Has someone faced the same issue while pushing images to public ECR?

Surabhi
preguntada hace 10 meses1587 visualizaciones
3 Respuestas
1

Try this:

Go to C:\Users\your_username\.docker\config.json.

And delete "credsStore": "desktop"

profile picture
respondido hace 10 meses
  • Yes this solution works in windows 10 along with aws configure sso and its profile-name using below sample

    aws ecr-public get-login-password --region us-east-1 --profile aws-cli | docker login --username AWS --password-stdin public.ecr.aws/XXXXXXXXX

0

Which commands do you use to push to ECR?

profile picture
respondido hace 10 meses
  • I am using the below push command for public ECR:

    aws ecr-public get-login-password --region <region> | docker login --username AWS --password-stdin <public repo URI> docker build -t <public repo name> . docker tag <public repo>:<tag> <public repo URI>:<tag> docker push <public repo URI>:<tag>

    I am getting the above issue on the login command- aws ecr-public get-login-password --region <region> | docker login --username AWS --password-stdin <public repo URI>

0

Hi, if you are running on Window Machine you are probably experience the issue reported here

https://github.com/aws/aws-cli/issues/5636

There are few workaround available listed in the thread but unfortunately not a final solution

AWS
respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas