简体   繁体   English

Docker AWS ECR 从命令行推送失败

[英]Docker AWS ECR push failure from command line

I'm trying to follow the guideline supplied in the ECR page of Amazon.我正在尝试遵循亚马逊 ECR 页面中提供的指南。 I've created a repository according to the documentations.我已经根据文档创建了一个存储库。 I've created a local image and applied tag to it as said online.我已经创建了一个本地图像,并如在线所说的那样对其应用了标签。 I've configured aws using the command: aws configure.我已经使用以下命令配置了 aws:aws configure。

After all that when I try to execute毕竟当我尝试执行

aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin <My ID>.dkr.ecr.us-east-2.amazonaws.com

I receive the following error:我收到以下错误:

botocore.exceptions.ClientError: An error occurred (InvalidSignatureException) when calling the GetAuthorizationToken operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

An error occurred (InvalidSignatureException) when calling the GetAuthorizationToken operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

Problem was that the region configured when running:问题是运行时配置的区域:

aws configure

and the region configured in the get-login-password wasn't the same region并且 get-login-password 中配置的区域不是同一个区域

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM