Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Docker on Windows: Interactive TTY Session Gives “Cannot Enable TTY Mode on Non-TTY Input”

DZone's Guide to

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.

· Integration Zone ·
Free Resource

Continue to drive demand for API management solutions that address the entire API life cycle and bridge the gap to microservices adoption.  Brought you to you in partnership with CA 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

Discover how organizations are modernizing their application architectures for speed and agility from the growing API economy.  Brought to you in partnership with CA Technologies.

Topics:
integration ,docker ,windows 7

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}