添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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
asked 2 months ago 206 views
3 Answers
0

Which commands do you use to push to ECR?

profile picture
answered 2 months ago
  • 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>