the input device is not a TTY. If you are using mintty, try prefixing the comma 发表于 2019-11-18 更新于 2023-03-04 Valine: windows上执行Docker命令,如: 1docker exec -it mysql mysql -uroot -p 就会报错: 1the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' 需要在执行Docker命令之前,加 winpty,如: 1winpty docker exec -it mysql mysql -uroot -p