,please note i have already set up docker on my ubuntu18.04 and also output of docker -v is as belowubuntu@ip-172-31-0-143:~$ docker -vDocker version 19.03.7, build 7141c199a2当我在ubuntu18.04的aws cli上执行亚马逊容器服务提供的命令时,出现以下错误:错误:无法从非TTY设备执行交互式登录When i execute the command provided by amazon container services on aws cli on ubuntu18.04 i get error as Error: Cannot perform an interactive login from a non TTY device我正在使用的命令是aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 8233251134332.dkr.ecr.us-east-2.amazonaws.com/gatling-lots请注意,我已经成功配置了awscli,我可以看到详见 aws s3 ls please note i have successfully configured awscli and i can see thedetailed from aws s3 ls这是详细的错误日志ubuntu@ip-172-31-0-143:~$ aws ecr get-login-password --region us- east-2 | docker login --username AWS --password-stdin 823443336.dkr.ecr.us-west-2.amazonaws.com/gatling-lotsusage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:aws helpaws <command> helpaws <command> <subcommand> helpaws: error: argument operation: Invalid choice, valid choices are: batch-check-layer-availability | batch-delete-image batch-get-image | complete-layer-upload create-repository | delete-lifecycle-policy delete-repository | delete-repository-policy describe-images | describe-repositories get-authorization-token | get-download-url-for-layer get-lifecycle-policy | get-lifecycle-policy-preview get-repository-policy | initiate-layer-upload list-images | put-image put-lifecycle-policy | set-repository-policy start-lifecycle-policy-preview | upload-layer-part get-login | help Error: Cannot perform an interactive login from a non TTY device输出ubuntu@ip-172-31-0-143:~$ (aws ecr get-login --no-include-email --region us-east-2)docker login -u AWS -p MzQxL2c0Yks4RjVxeDg9IiwidmVyc2lvbiI6IjIiLCJ0eXBlIjoiREFUQV9LRVkiLCJleHBpcmF0aW9uIjoxNTgzNjgzNDY5fQ== https://825251119036.dkr.ecr.us- east-2.amazonaws.com推荐答案您需要安装AWS CLI版本2.请遵循链接 You need to install AWS CLI version 2.Follow the instructions in this link 这篇关于acr ecr表示“无法从非TTY设备执行交互式登录"从"Amazon Container Services"复制cmd之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-22 06:09