{"action":"created","issue":{"url":"https://api.github.com/repos/codenvy/codenvy/issues/563","repository_url":"https://api.github.com/repos/codenvy/codenvy","labels_url":"https://api.github.com/repos/codenvy/codenvy/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/codenvy/codenvy/issues/563/comments","events_url":"https://api.github.com/repos/codenvy/codenvy/issues/563/events","html_url":"https://github.com/codenvy/codenvy/issues/563","id":170637933,"number":563,"title":"API don't remove container when entrypoint is invalid and conatainer state is \"Exited\"","user":{"login":"skryzhny","id":1636620,"avatar_url":"https://avatars.githubusercontent.com/u/1636620?v=3","gravatar_id":"","url":"https://api.github.com/users/skryzhny","html_url":"https://github.com/skryzhny","followers_url":"https://api.github.com/users/skryzhny/followers","following_url":"https://api.github.com/users/skryzhny/following{/other_user}","gists_url":"https://api.github.com/users/skryzhny/gists{/gist_id}","starred_url":"https://api.github.com/users/skryzhny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skryzhny/subscriptions","organizations_url":"https://api.github.com/users/skryzhny/orgs","repos_url":"https://api.github.com/users/skryzhny/repos","events_url":"https://api.github.com/users/skryzhny/events{/privacy}","received_events_url":"https://api.github.com/users/skryzhny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codenvy/codenvy/labels/kind/bug","name":"kind/bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-11T12:50:22Z","updated_at":"2016-08-11T12:58:55Z","closed_at":"2016-08-11T12:58:55Z","body":"I see lot of containers in \"Exited\" states.\r\nSwarm reserves memory for them and can't start new containers because of this\r\n\r\n```\r\n# docker -H localhost:23750 ps -a\r\n9fa8d23057a7        eclipse-che/workspaceq6smjp9olk5fyml9_machinet8tnel41ogr2lce4_brittjohalloran_ws-machine       \"R\"                      48 minutes ago      Exited (2) 48 minutes ago                                                                                                                                                                                          node3.beta.codenvy.com/workspaceq6smjp9olk5fyml9_machinet8tnel41ogr2lce4_brittjohalloran_ws-machine\r\n5bc463a59c79        eclipse-che/workspaceq6smjp9olk5fyml9_machine8q8s9kq2rug3ip1t_brittjohalloran_ws-machine       \"R\"                      48 minutes ago      Exited (2) 48 minutes ago                                                                                                                                                                                          node2-beta.codenvy-stg.com/workspaceq6smjp9olk5fyml9_machine8q8s9kq2rug3ip1t_brittjohalloran_ws-machine\r\n```\r\nYou may see invalid entrypoint. So probably container exits immediately after start.\r\nAPI should detect that situation and remove workspace.\r\n\r\nReproduction Steps:\r\nStart workspace with invalid entrypoint\r\n\r\nExpected behavior:\r\nWorkspace should be  stopped and corresponding container should be removed\r\n\r\nObserved behavior:\r\nContainers stays in \"Excited\" state\r\n\r\nCodenvy version: customer-SaaS-4.6.2\r\nOS and version: Centos 7.2\r\n"},"comment":{"url":"https://api.github.com/repos/codenvy/codenvy/issues/comments/239153353","html_url":"https://github.com/codenvy/codenvy/issues/563#issuecomment-239153353","issue_url":"https://api.github.com/repos/codenvy/codenvy/issues/563","id":239153353,"user":{"login":"garagatyi","id":1851863,"avatar_url":"https://avatars.githubusercontent.com/u/1851863?v=3","gravatar_id":"","url":"https://api.github.com/users/garagatyi","html_url":"https://github.com/garagatyi","followers_url":"https://api.github.com/users/garagatyi/followers","following_url":"https://api.github.com/users/garagatyi/following{/other_user}","gists_url":"https://api.github.com/users/garagatyi/gists{/gist_id}","starred_url":"https://api.github.com/users/garagatyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garagatyi/subscriptions","organizations_url":"https://api.github.com/users/garagatyi/orgs","repos_url":"https://api.github.com/users/garagatyi/repos","events_url":"https://api.github.com/users/garagatyi/events{/privacy}","received_events_url":"https://api.github.com/users/garagatyi/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T12:58:55Z","updated_at":"2016-08-11T12:58:55Z","body":"Close be cause this issue is duplicate of #562"}}
{"actor":{"display_login":"garagatyi"}}