案发现场
$ 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'
解决方案
$ 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