Pushing Docker Image to AWS ECR fails on the first step.

0

So I created a public repo in AWS ECR. When i type the following command in AWS CLI:

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

I get the following error:

Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out: `The stub received bad data.``

I created an IAM user and gave it AdministratorAccess. I have tried everything but I am still getting this error.

1개 답변
1

Hi

you need to find a file ~/.config/docker/config.json. And then remove the credHelpers line from this file. and retry the command

profile picture
전문가
GK
답변함 한 달 전
profile pictureAWS
전문가
iBehr
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠