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

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

问题描述

在我运行这个之后
$ docker run --rm -v "/c/users/vipul rao/documents/github/wappalyzer:/opt/wappalyzer" -it wappalyzer/dev

我收到以下错误

输入设备不是 TTY.如果您使用的是 mintty,请尝试在命令前加上 '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

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

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