docker出现the inpu device is not a TTY错误
(本博客旨在个人总结回顾)
问题描述:直接在cmd执行
>docker run -it imagename:v -v E:xx:/home 没有报错。
但使用QT在QProcess去执行这条命令的时候就出错:
the input device is not a TTY.If you are using mintty, try prefixing the command with 'winpty'
解决方法:
加入参数-d就能解决问题。
即QProcess实际执行的是:
docke...
原创
2020-07-09 16:54:36 ·
1997 阅读 ·
0 评论