{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/1588","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/1588/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/1588/events","html_url":"https://github.com/docker/for-win/issues/1588","id":290163414,"node_id":"MDU6SXNzdWUyOTAxNjM0MTQ=","number":1588,"title":"TTY Error running interactive docker on Bash on Windows","user":{"login":"waleedka","id":106472,"node_id":"MDQ6VXNlcjEwNjQ3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/106472?v=4","gravatar_id":"","url":"https://api.github.com/users/waleedka","html_url":"https://github.com/waleedka","followers_url":"https://api.github.com/users/waleedka/followers","following_url":"https://api.github.com/users/waleedka/following{/other_user}","gists_url":"https://api.github.com/users/waleedka/gists{/gist_id}","starred_url":"https://api.github.com/users/waleedka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waleedka/subscriptions","organizations_url":"https://api.github.com/users/waleedka/orgs","repos_url":"https://api.github.com/users/waleedka/repos","events_url":"https://api.github.com/users/waleedka/events{/privacy}","received_events_url":"https://api.github.com/users/waleedka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-20T04:17:20Z","updated_at":"2018-07-19T07:50:37Z","closed_at":null,"author_association":"NONE","body":"A quick search online showed that a lot of people are frustrated about this issue. Basically, I'm trying to run Docker for Windows from the Bash on WSL (Windows Subsystem for Linux) on Windows 10 Creator Edition.\r\n\r\n```\r\n docker.exe run -it hello-world\r\n```\r\nReturns this error:\r\n```\r\nthe input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'\r\n```\r\n\r\nThe suggested solutions typically require installing external tools to work around the issue. I prefer not to prefix all my docker commands with `winpty` because then my scripts won't run on Linux boxes. And, actually, I prefer not to have to install `winpty` or any other tool just to work-around this issue. Can someone at Docker fix the issue at the root please? \r\n\r\nBased on [this thread](https://github.com/Microsoft/WSL/issues/2379), it seems this is a Docker issue. Quoting:\r\n> This is a docker.exe issue, I believe. It is not aware of the new console functionality and probably duplicates it to some degree. We saw similar problems on Win32-OpenSSH. Basically, when compiling docker.exe, they need to flip a few console flags up on the IO handles and disable their built-in terminal emulation code to allow the Windows console to take over processing.\r\n\r\nPlease look into it. You'd save your community a lot of frustration. "},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/406187332","html_url":"https://github.com/docker/for-win/issues/1588#issuecomment-406187332","issue_url":"https://api.github.com/repos/docker/for-win/issues/1588","id":406187332,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjE4NzMzMg==","user":{"login":"ray1007","id":7671322,"node_id":"MDQ6VXNlcjc2NzEzMjI=","avatar_url":"https://avatars2.githubusercontent.com/u/7671322?v=4","gravatar_id":"","url":"https://api.github.com/users/ray1007","html_url":"https://github.com/ray1007","followers_url":"https://api.github.com/users/ray1007/followers","following_url":"https://api.github.com/users/ray1007/following{/other_user}","gists_url":"https://api.github.com/users/ray1007/gists{/gist_id}","starred_url":"https://api.github.com/users/ray1007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray1007/subscriptions","organizations_url":"https://api.github.com/users/ray1007/orgs","repos_url":"https://api.github.com/users/ray1007/repos","events_url":"https://api.github.com/users/ray1007/events{/privacy}","received_events_url":"https://api.github.com/users/ray1007/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T07:50:37Z","updated_at":"2018-07-19T07:50:37Z","author_association":"NONE","body":"I had the same problem. Below are my findings: \r\n\r\nThe command ```docker.exe run -it hello-world``` also failed in my WSL bash.\r\nHowever I found the same command worked in both cmd and Powershell. (See below)\r\n![image](https://user-images.githubusercontent.com/7671322/42927696-d723e484-8b67-11e8-9c49-d8a35a95dc5a.png)\r\n![image](https://user-images.githubusercontent.com/7671322/42928063-e958d492-8b68-11e8-8bc2-938ad496c7e1.png)\r\n![image](https://user-images.githubusercontent.com/7671322/42927651-b396caf4-8b67-11e8-843a-b22daae21fe5.png)\r\n\r\nPerhaps one should not use ```docker.exe``` in WSL. I followed this [guide](https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4) to install docker client on WSL. And the command ```docker run -it hello-world``` executed with no error.\r\n![image](https://user-images.githubusercontent.com/7671322/42928629-6ee82e2c-8b6a-11e8-8850-122e1b8114e3.png)\r\n\r\nStill I haven't figured out why ```docker.exe``` works only on windows shells. I'd appreciate if someone could explain it! :)\r\n\r\nTzu-Ray"}}
{"actor":{"display_login":"ray1007"}}