Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
cybertk opened this issue Apr 20, 2018 · 8 comments
Closed
2 tasks done
Labels
❌ Is Invalid Issue does not pertain to Hyper

Comments

@cybertk
Copy link

cybertk commented Apr 20, 2018

  • 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'
@RecaaJo
Copy link

RecaaJo commented 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/

@cybertk
Copy link
Author

cybertk commented Apr 25, 2018

Why Hyper isn’t compatible with Windows console programs?

@cybertk
Copy link
Author

cybertk commented Apr 25, 2018

I saw winpty is already carried in Hyper, why I still need to add winpty prefix? And the even worse is that I should install another winpty besides the one carried in Hyper.

@samoldenburg
Copy link

samoldenburg commented 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.

@FantomX1
Copy link

happens too at windows linux subsystem

@dictShuang
Copy link

Just add 'winpty' in start of my cmd.
before:
docker exec -it kubia-container bash
after:
winpty docker exec -it kubia-container bash

@alenworld
Copy link

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.

Thank you!

@ghost
Copy link

ghost commented Sep 11, 2021

Forget git bash, use your prompt. Start > Run > "CMD"

1 - docker run redis

2 - docker ps -all

3 - Copy the container_id that represents the redis image.

4 - docker exec -it container_id redis-cli.

5 - Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❌ Is Invalid Issue does not pertain to Hyper
Projects
None yet
Development

No branches or pull requests

7 participants