Docker: execute a program that requires tty -
i have utility program depends on terminal characteristics. want execute inside docker container. (the program not interactive program such. old program written way).
docker run -i -t
or docker exec -i -t
should open tty container. here happens..
user@1755e1f3f735:~/region/primer/cobol_v> kickstop [error] unable run without terminal device (tty) user@1755e1f3f735:~/region/primer/cobol_v> tty not tty
when -t option docker command (run/exec) should give 'tty', tty commands returns 'not tty'. puzzling.
i experienced on opensuse , fedora23 hosts , images, if matters. used 'guake', mate (gnome?) terminal emulators this, same results.
is there solution this? or design , have replace/rewrite utility?
i ran same issue, , found "docker exec -ti container script /dev/null" solved problem.
after login container above command, can use screen normally.
reference: https://github.com/docker/docker/issues/8755
Comments
Post a Comment