the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘

案发现场

$ docker run --rm -it amazon/aws-cli --version
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘

解决方案

$ winpty docker run --rm -it amazon/aws-cli --version
aws-cli/2.4.6 Python/3.8.8 Linux/5.10.16.3-microsoft-standard-WSL2 docker/x86_64.amzn.2 prompt/off

the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘

上一篇:Redis02:Redis概述及安装


下一篇:python自动化(七)自动化测试平台开发:8.前端开发实战上之环境搭建