{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/29670","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/29670/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/29670/comments","events_url":"https://api.github.com/repos/docker/docker/issues/29670/events","html_url":"https://github.com/docker/docker/issues/29670","id":197328840,"number":29670,"title":"Why  \"docker attach\" will hang sometimes?","user":{"login":"erxian","id":16218316,"avatar_url":"https://avatars.githubusercontent.com/u/16218316?v=3","gravatar_id":"","url":"https://api.github.com/users/erxian","html_url":"https://github.com/erxian","followers_url":"https://api.github.com/users/erxian/followers","following_url":"https://api.github.com/users/erxian/following{/other_user}","gists_url":"https://api.github.com/users/erxian/gists{/gist_id}","starred_url":"https://api.github.com/users/erxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erxian/subscriptions","organizations_url":"https://api.github.com/users/erxian/orgs","repos_url":"https://api.github.com/users/erxian/repos","events_url":"https://api.github.com/users/erxian/events{/privacy}","received_events_url":"https://api.github.com/users/erxian/received_events","type":"User","site_admin":false},"labels":[{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-23T08:14:25Z","updated_at":"2016-12-23T11:44:24Z","closed_at":"2016-12-23T11:44:24Z","body":"Hi, this issue is intended to figure out the  reason why  ```docker attach```  will hang sometimes.\r\n\r\nProblem Reproduce\r\n\r\nFirst, I run the following command to start a container , and  the container ID is 8cb40c275eff :\r\n\r\n ``` docker run -d -p 8080:8080 daocloud.io/daocloud/dao-tomcat:v7.0.5 ``` \r\n\r\nThen, I run docker attach command to attach to the running container :\r\n```docker attach 8cb40c275eff```\r\n\r\nHowever,  docker attach command will hang for ever no matter how many times I enter Ctrl+C or exit. \r\n\r\nThe wired thing is, when I run docker attach command in another machine,  I can attach to the running container with the same command, but the container will die after I exit .\r\n\r\nSo,  firstly I wonder know why the docker attach will hang sometimes.\r\n\r\nsecondly,  I wonder know when I attached the container,  why the container will die after I exit.\r\n\r\nThirdly, I wonder know what's the function of  ```docker attach```, and what's the meaning of **view its ongoing output** in attach.md https://github.com/docker/docker/blob/master/docs/reference/commandline/attach.md\r\n\r\nDocker version\r\n\r\n```Client:\r\n Version:      1.12.2\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   bb80604\r\n Built:        Tue Oct 11 18:19:35 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.2\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   bb80604\r\n Built:        Tue Oct 11 18:19:35 2016\r\n OS/Arch:      linux/amd64```\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"cpuguy83"}}