{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/1083","labels_url":"https://api.github.com/repos/docker/swarm/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1083/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/1083/events","html_url":"https://github.com/docker/swarm/issues/1083","id":96506278,"number":1083,"title":"containers on 'host down' amazon machine","user":{"login":"agsmorodin","id":4486464,"avatar_url":"https://avatars.githubusercontent.com/u/4486464?v=3","gravatar_id":"","url":"https://api.github.com/users/agsmorodin","html_url":"https://github.com/agsmorodin","followers_url":"https://api.github.com/users/agsmorodin/followers","following_url":"https://api.github.com/users/agsmorodin/following{/other_user}","gists_url":"https://api.github.com/users/agsmorodin/gists{/gist_id}","starred_url":"https://api.github.com/users/agsmorodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agsmorodin/subscriptions","organizations_url":"https://api.github.com/users/agsmorodin/orgs","repos_url":"https://api.github.com/users/agsmorodin/repos","events_url":"https://api.github.com/users/agsmorodin/events{/privacy}","received_events_url":"https://api.github.com/users/agsmorodin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-22T08:19:46Z","updated_at":"2015-08-05T00:41:35Z","closed_at":"2015-08-05T00:41:35Z","body":"When I create a machine on amazon cloud, create a couple of containers on it and then terminate the machine using :\r\ndocker-machine rm swarm-01 \r\nI still see containers on swarm-master with remark 'host down':\r\n2a3946288f05        nginx:latest   \"nginx -g 'daemon of   17 hours ago        Host Down           443/tcp, 10.10.92.199:32768->80/tcp   swarm-01/dockermachine_worker_2\r\n\r\nAnd it's not possible to stop/remove this unreachable container from the list using docker rm or docker stop. \r\ndocker stop 9576211d7b3f\r\nError response from daemon: Post https://10.10.92.5:2376/v1.18/containers/9576211d7b3f00b423d8a52698bc23db1829e062a82268d39861d8b329839ede/stop?t=10: dial tcp 10.10.92.5:2376: no route to host\r\nThe problem is clear because host is down. But it will not be UP never. \r\n\r\nThere is only one solution that is working for me:  if I restart swarm-master machine unreachable containers disappear from the list.  \r\nI stopped the machine manually and I understand that  properly I should stop containers on this machine firstly. But lets' imagine that something accidentally happened with machine and we need to remove the unreachable docker instances from swarm cluster. Is there a the proper way to do it?\r\n\r\n\r\n"}}