[英]Unable to push docker images into AWS ECR from Windows 10
When I try to execute this command: 当我尝试执行此命令时:
> aws ecr get-login --no-include-email --region us-east-1
I keep getting the error message: 我不断收到错误消息:
> Unknown options: --no-include-email
I followed the instructions here: http://docs.aws.amazon.com/cli/latest/userguide/installing.html to update my aws cli to the latest version: 我按照此处的说明进行操作: http : //docs.aws.amazon.com/cli/latest/userguide/installing.html将aws cli更新到最新版本:
> pip install awscli --upgrade --user
but the problem persists. 但问题仍然存在。 I am completely blocked, as there's no other way that I can use to push my docker images to Amazon ECR.
我被完全封锁,因为没有其他方法可以将Docker映像推送到Amazon ECR。
My environment is the following: 我的环境如下:
I found a workaround which was to just use the regular command: 我发现了一种解决方法,该解决方法只是使用常规命令:
> ecr get-login --region us-east-1
And then I removed the part: 然后我删除了该部分:
>...-e none...
from the docker login command that was generated and ran it like that and I was able to login into my aws ecr repositories. 从生成并运行的docker login命令中,我能够登录到我的AWS ECR存储库。
如果您放弃了电子邮件选项,则可能会有一个包含“ -e none”的回车行,您不希望它被sed
aws ecr get-login --youroptions | sed 's/\-e none//g'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.