我正在尝试将本地 docker 映像推送到我创建的 ECS 存储库中。
按照此链接链接
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin xxxxxxxxxxxx.dkr.ecr.region.amazonaws.com --profile loadeo
错误:
unknown flag: --profile
Unable to locate credentials. You can configure credentials by running "aws configure".
我还提到了这个Question的堆栈溢出问题。这里接受的答案是拥有 awscli 版本 2。我觉得我有 cli 的第 2 版
aws --version
aws-cli/2.0.19 Python/3.7.7 Windows/10 botocore/2.0.0dev23
在上面的命令中,如果我不使用 --profile 我会收到错误消息。
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin xxxxxxxxxxxxxx.dkr.ecr.region.amazonaws.com
Unable to locate credentials. You can configure credentials by running "aws configure".
Error: Cannot perform an interactive login from a non TTY device
我在这里想念什么?有人可以帮我解决这个问题吗?