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
回答済み 1ヶ月前
profile pictureAWS
エキスパート
iBehr
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ