(本博客旨在个人总结回顾)
问题描述:直接在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实际执行的是:
docker run -it -d imagename:v -v E:xx:/home