the input device is not a TTY. If you are using mintty, try prefixing the comma

1,136 阅读1分钟

windows上执行Docker命令,如:

docker exec -it mysql mysql -uroot -p

就会报错:

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

需要在执行Docker命令之前,加 winpty,如:

winpty docker exec -it mysql mysql -uroot -p