question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

See original GitHub issue
  • I am on the latest Hyper.app v2.0.0
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Win10
  • Hyper.app version: v2.0.0
  • Link of a Gist with the contents of your .hyper.js:
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
  • The issue is reproducible in vanilla Hyper.app:

Issue

The issue can be simply reproduced by the following command

$ docker.exe run -it --rm ubuntu:14.04 /bin/bash
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

117reactions
RecaaJocommented, Apr 23, 2018

Just add ‘winpty’ in start of your cmd ,Try below: $ winpty docker.exe run -it --rm ubuntu:14.04 /bin/bash

Why this happens? More details here: http://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/

9reactions
samoldenburgcommented, May 30, 2018

To anyone potentially having a similar issue with docker, you may not need winpty.

I followed this guide to install docker on WSL rather than passing through to the windows.exe: https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4

Then I changed my shellArgs in .hyper.js from

 shellArgs: ['--login', '-i', '/c wsl'],

to

shellArgs: ['--login'],

Seems to work fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker error on windows : the input device is not a TTY. If you ...
If you are using mintty, try prefixing the command with 'winpty'" ... docker run echo "what'up" | cat avoids error: stdout is not...
Read more >
the input device is not a TTY. If you are using mintty ... - YouTube
Windows : docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with '...
Read more >
Docker on Windows: error that the input device is not a TTY
If you are using mintty, try prefixing the command with 'winpty' Error:[rake --prereqs] the input device is not a TTY. If you are...
Read more >
The input device is not a TTY. If you are using mintty, try ...
The input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' · Docker Desktop for Windows....
Read more >
Docker for Windows: Interactive Sessions In MinTTY Git Bash
docker run -it ubuntu bash the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found