泊坞窗错误:输入设备不是TTY。如果您使用的是薄荷,请尝试在命令前加上“ winpty” [英] docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

查看:183
本文介绍了泊坞窗错误:输入设备不是TTY。如果您使用的是薄荷,请尝试在命令前加上“ winpty”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行此命令后

$ docker run --rm -v / c / users / vipul rao / documents / github / wappalyzer:/ opt / wappalyzer -it wappalyzer / dev

我遇到以下错误


输入设备不是TTY。如果您使用的是薄荷糖,请尝试在命令前加上 winpty

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

在这里应该使用什么?我正在MINGW64的Windows 8上运行。

What should I use here? I am running on Windows 8 in MINGW64.

推荐答案

如您得到的错误消息所建议,您应该尝试使用 winpty (默认情况下与Git-Bash一起安装),然后运行:

As suggested by the error message you obtain, you should try to use winpty (which is installed by default with Git-Bash) and thus run:

winpty docker run --rm -v "/c/users/vipul rao/documents/github/wappalyzer:/opt/wappalyzer" -it wappalyzer/dev

如果可行,您可能希望设置一个Bash别名以避免手动在 winpty之前添加始终:

If this works, you may want to set a Bash alias to avoid manually prepending winpty all the time:

echo "alias docker='winpty docker'" >> ~/.bashrc

echo "alias docker='winpty docker'" >> ~/.bash_profile

这篇关于泊坞窗错误:输入设备不是TTY。如果您使用的是薄荷,请尝试在命令前加上“ winpty”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆