{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12469","labels_url":"https://api.github.com/repos/docker/docker/issues/12469/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12469/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12469/events","html_url":"https://github.com/docker/docker/issues/12469","id":69071324,"number":12469,"title":"\"cannot enable tty mode on non tty input\" in Cygwin in Windows","user":{"login":"elrac","id":4564119,"avatar_url":"https://avatars.githubusercontent.com/u/4564119?v=3","gravatar_id":"","url":"https://api.github.com/users/elrac","html_url":"https://github.com/elrac","followers_url":"https://api.github.com/users/elrac/followers","following_url":"https://api.github.com/users/elrac/following{/other_user}","gists_url":"https://api.github.com/users/elrac/gists{/gist_id}","starred_url":"https://api.github.com/users/elrac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elrac/subscriptions","organizations_url":"https://api.github.com/users/elrac/orgs","repos_url":"https://api.github.com/users/elrac/repos","events_url":"https://api.github.com/users/elrac/events{/privacy}","received_events_url":"https://api.github.com/users/elrac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/windows","name":"group/windows","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":43,"created_at":"2015-04-17T06:17:49Z","updated_at":"2015-09-08T04:17:45Z","closed_at":null,"body":"When attempting to run docker in Cygwin(Babun) in Windows if the command uses the -t flag I receive the message:\r\n\r\n    >>docker run -ti ubuntu bash\r\n    time=\"2015-04-16T22:49:12-07:00\" level=fatal msg=\"cannot enable tty mode on non tty input\"\r\n\r\nit seems like it isn't correctly passing the -t option to the underlying ssh call, but I don't know why that would be seeing as the ssh installed with git seems to have the same arguments as the one installed with Babun."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/138426213","html_url":"https://github.com/docker/docker/issues/12469#issuecomment-138426213","issue_url":"https://api.github.com/repos/docker/docker/issues/12469","id":138426213,"user":{"login":"marc","id":725,"avatar_url":"https://avatars.githubusercontent.com/u/725?v=3","gravatar_id":"","url":"https://api.github.com/users/marc","html_url":"https://github.com/marc","followers_url":"https://api.github.com/users/marc/followers","following_url":"https://api.github.com/users/marc/following{/other_user}","gists_url":"https://api.github.com/users/marc/gists{/gist_id}","starred_url":"https://api.github.com/users/marc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc/subscriptions","organizations_url":"https://api.github.com/users/marc/orgs","repos_url":"https://api.github.com/users/marc/repos","events_url":"https://api.github.com/users/marc/events{/privacy}","received_events_url":"https://api.github.com/users/marc/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T04:17:45Z","updated_at":"2015-09-08T04:17:45Z","body":"I hope this does not get too off topic but maybe this summary will be helpful for anyone else who ended up here looking for a better terminal experience with docker on Windows and running into the \"cannot enable tty mode on non tty input\" error along the way.\r\n\r\nI started with docker on Windows with the Docker Quickstart Terminal but noticed some terminal oddities like the docker progress bars scrolling into new lines instead of animating in a single line. The default tmux status bar also showed an extra line and top seemed to show some extra empty lines as well.\r\n\r\nThen I tried using the babun shell and also ran into the \"cannot enable tty mode on non tty input\" error when running `docker run -ti ubuntu bash`.\r\n\r\n@elrac and @cliffom mentioned sshing into the VM to run the docker commands as a workaround and it works well.\r\n\r\nWhen I use `docker-machine ssh default` from babun, the docker progress bars that show up when downloading and extracting images look right.\r\nRunning tmux and top from inside a docker container also works as expected.\r\nYou can also maximize or resize the terminal window without a problem.\r\n\r\nIf you want to use docker on Windows with the babun shell, just start the shell and from there start the VM and ssh in before running your docker commands:\r\n```\r\n{ ~ }  » docker-machine start default                                                                                                            ~\r\nStarting VM...\r\nStarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.\r\n{ ~ }  » docker-machine ssh default                                                                                                              ~\r\n                        ##         .\r\n                  ## ## ##        ==\r\n               ## ## ## ## ##    ===\r\n           /\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\\___/ ===\r\n      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~\r\n           \\______ o           __/\r\n             \\    \\         __/\r\n              \\____\\_______/\r\n _                 _   ____     _            _\r\n| |__   ___   ___ | |_|___ \\ __| | ___   ___| | _____ _ __\r\n| '_ \\ / _ \\ / _ \\| __| __) / _` |/ _ \\ / __| |/ / _ \\ '__|\r\n| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |\r\n|_.__/ \\___/ \\___/ \\__|_____\\__,_|\\___/ \\___|_|\\_\\___|_|\r\nBoot2Docker version 1.8.1, build master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015\r\nDocker version 1.8.1, build d12ea79\r\ndocker@default:~$ docker run -it ubuntu bash\r\nUnable to find image 'ubuntu:latest' locally\r\nlatest: Pulling from library/ubuntu\r\n\r\nd3a1f33e8a5a: Pull complete\r\nc22013c84729: Pull complete\r\nd74508fb6632: Pull complete\r\n91e54dfb1179: Already exists\r\nlibrary/ubuntu:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.\r\n\r\nDigest: sha256:fde8a8814702c18bb1f39b3bd91a2f82a8e428b1b4e39d1963c5d14418da8fba\r\nStatus: Downloaded newer image for ubuntu:latest\r\nroot@fcbee221b3f2:/#```"}}