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

docker-compose on wsl: stdin is not a tty #166

Open
brunopistone opened this issue Mar 24, 2019 · 1 comment
Open

docker-compose on wsl: stdin is not a tty #166

brunopistone opened this issue Mar 24, 2019 · 1 comment

Comments

@brunopistone
Copy link

Hi guys, I have the following problem: I'm using the linux subsystem on windows 10, with docker and docker compose installed on the pc. I've configured everything in order to use them inside the ubuntu bash.
When I run the command:

docker-compose up -d

Everything works, containers are up and the application is running well. But when I try to exec:

docker-compose exec --user root container /bin/bash

I receive the following message:
the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
So I tried to exec:

winpty.exe docker-compose exec --user root container /bin/bash

And I receive this:
stdin is not a tty

Since this is really a blocking issue for me, there is a solution for this? Thank you for the help.

@maciej-makowski
Copy link

It's a long standing issue with Docker. The way it does terminal detection only works with cmd.exe and powershell.exe at the moment. Any third-party terminal breaks that detection and gives the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants