{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11008","labels_url":"https://api.github.com/repos/docker/docker/issues/11008/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11008/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11008/events","html_url":"https://github.com/docker/docker/issues/11008","id":58873899,"number":11008,"title":"Manually stopped containers should not start after daemon restart","user":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/exp/beginner","name":"exp/beginner","color":"A8DBA8"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"},{"url":"https://api.github.com/repos/docker/docker/labels/status/claimed","name":"status/claimed","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-02-25T09:31:17Z","updated_at":"2015-05-16T19:40:30Z","closed_at":null,"body":"Container with a restart policy (eg `--restart always`) is always restarted on daemon restart, even if the container has already been put to the stopped state manually.\r\n\r\nBackground: when I update containers I'd like to keep old containers around for a while in order to do a rollback if needed. Now, should the daemon restart, all versions of the containers start again.\r\n\r\n```\r\n> docker run -d --restart always --name r0 busybox sleep 1000\r\n> docker stop r0\r\n> docker ps | grep r0 | wc -l\r\n0\r\n> sudo service docker restart\r\n> docker ps | grep r0 | wc -l\r\n1\r\n```\r\n\r\nTested with `v1.4.1` and `v1.5.0`.\r\n\r\nI could help out fixing this if it gets confirmed as a bug."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/102669334","html_url":"https://github.com/docker/docker/issues/11008#issuecomment-102669334","issue_url":"https://api.github.com/repos/docker/docker/issues/11008","id":102669334,"user":{"login":"thefallentree","id":1256464,"avatar_url":"https://avatars.githubusercontent.com/u/1256464?v=3","gravatar_id":"","url":"https://api.github.com/users/thefallentree","html_url":"https://github.com/thefallentree","followers_url":"https://api.github.com/users/thefallentree/followers","following_url":"https://api.github.com/users/thefallentree/following{/other_user}","gists_url":"https://api.github.com/users/thefallentree/gists{/gist_id}","starred_url":"https://api.github.com/users/thefallentree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefallentree/subscriptions","organizations_url":"https://api.github.com/users/thefallentree/orgs","repos_url":"https://api.github.com/users/thefallentree/repos","events_url":"https://api.github.com/users/thefallentree/events{/privacy}","received_events_url":"https://api.github.com/users/thefallentree/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T19:40:30Z","updated_at":"2015-05-16T19:40:30Z","body":"I didn't get a response from previous dibs holde and I sort of forgot. But give me another 3 days. I will send in a PR."}}