git-bash 执行 docker 指令报错:the input device is not a TTY...解决
使用 git-bash 执行 docker exec xxx 指令,报错:
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’晚上找到的解决方法,就是在指令前加一个 winpty ,答案藏在错误提示里。
之后发现,很多在 git-bash 中无法执行,或者执行没有输出的情况,在指令前增加一个 winpty 就能正常输出,比如 msyql -u root -p 连接数据库,比如 telnet 192.168.99.100 8080。
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
海滨擎蟹
微信
支付宝