gpt4 book ai didi

windows - Windows 上的 docker 错误 : the input device is not a TTY. 如果您使用的是 mintty,请尝试在命令前加上 'winpty'

转载 作者:IT老高 更新时间:2023-10-28 12:38:39 26 4
gpt4 key购买 nike

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

我收到以下错误

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

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

最佳答案

根据您收到的错误消息的建议,您应该尝试使用 winpty (默认情况下与 Git-Bash 一起安装)并因此运行:

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

如果可行,您可能需要设置一个 Bash 别名以避免一直手动添加 winpty:

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

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

关于windows - Windows 上的 docker 错误 : the input device is not a TTY. 如果您使用的是 mintty,请尝试在命令前加上 'winpty',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48623005/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com