fabregaszy
fabregaszy

Reputation: 506

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

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?

Upvotes: 1

Views: 4753

Answers (1)

fabregaszy
fabregaszy

Reputation: 506

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.

Upvotes: 1

Related Questions