I have a utility program that depends on the characteristics of the terminal. I want to execute it inside a docker container. (The program is not an interactive program as such. It is an old program that was written that way).
docker run -i -t
or docker exec -i -t
should open tty in the container. But here's what happens ..
user@1755e1f3f735 :~/region/primer/cobol_v> kickstop [Error] Unable to run without terminal device (tty) user@1755e1f3f735 :~/region/primer/cobol_v> tty not a tty
When the -t option to docker (run / exec) should give 'tty', tty commands return with 'not tty'. This is puzzling.
I tested this on openSuse and fedora23 hosts and images, if that matters. For this I used the terminal emulators "guake", MATE (Gnome?) With the same results.
Is there any solution? or is it by design and need to replace / rewrite my utility?
yogmk source share