Can not write to '/dev/tty' when build Docker images

我是研究僧i 提交于 2019-12-11 11:48:43

问题


I'm building docker images from Dockerfile and when I run a script(CUDA installation script) which has

echo XXX > /dev/tty

in it, then an error "/dev/tty: No such device or address" comes up and the build failed. I've tried --silent flag but it seems do no help.

My base image is Cent OS 7.

Is there anyway to fix or work around this?


回答1:


I've fixed this problem: it turns out I didn't install command tar & perl before hand. And the script wants to write error messages to /dev/tty. The error information led me to the wrong way to solve this issue.

Thanks.



来源:https://stackoverflow.com/questions/32561121/can-not-write-to-dev-tty-when-build-docker-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!