我尝试在gitbash shell中运行以下Docker命令。docker exec -it service /bin/bashthe input device is not a TTY.If you are using mintty, try prefixing the command with 'winpty'
当我尝试<
我有一个简单的DockerFile:我使用docker命令( dt_test .)构建了映像。我所要做的就是在Git上以交互方式运行码头映像。git中的路径已设置为包含停靠器工具箱。当我运行交互式码头运行命令:"docker运行-it dt_test“时,它会给出一个错误:
the input device is not a TTY.
我正在尝试调用python中的按键函数。当脚本在Windows命令行(cmd.exe)中运行时,一切工作正常。但通常当我使用Windows时,我会使用mintty。在mintty中,应用程序的行为有所不同。The The The 阻止应用程序(永远)。import msvcrt
char = msvcrt.getch()
print(f"you pressed: