Docker on Windows: Interactive TTY Session Gives “Cannot Enable TTY Mode on Non-TTY Input”
When running a Docker shell container on Windows 7, you'll get a very specific error. Luckily, there's a simple workaround.
Join the DZone community and get the full member experience.Join For Free
Is iPaaS solving the right problems? Not knowing the fundamental difference between iPaaS and dPaaS could cost you down the road. Brought to you in partnership with Liaison Technologies.
Trying to run a shell into a running container (docker exec -it containerid bash) using DockerToolbox/docker-machine on Windows 7 gives this error:
"cannot enable tty mode on non tty input"
(this runs fine on Mac OS X)
This is logged as an issue here. As a workaround, prefix the docker command with winpty, so:
winpty docker exec -it containerid bash
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.