Sometimes I need to work on Windows, and when I tinker a bit I often end up the Cygwin based MobaXterm, the excellent unixish terminal + X server for Windows. Few days I started also playing with Docker on windows, and when I tried to execute it from the shell I ended up with this message:

$ docker run -it ubuntu bash<br /> the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

You obviously couldn’t just apt-get winpty, that would have been too easy, but you can quickly download Winpty from their release page. I picked the 0.4.3 cygwin x64 version and put the binary in my $PATH, so it was easy to prefix the previous command:

$ winpty docker run -it ubuntu bash<br /> root@5af561cc25b8:/# uname -a<br /> Linux 5af561cc25b8 4.9.41-moby #1 SMP Wed Sep 6 00:05:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux