{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13275","labels_url":"https://api.github.com/repos/docker/docker/issues/13275/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13275/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13275/events","html_url":"https://github.com/docker/docker/issues/13275","id":77008837,"number":13275,"title":"manually stopping a container should invalidate auto-restart policy","user":{"login":"avinson","id":1617166,"avatar_url":"https://avatars.githubusercontent.com/u/1617166?v=3","gravatar_id":"","url":"https://api.github.com/users/avinson","html_url":"https://github.com/avinson","followers_url":"https://api.github.com/users/avinson/followers","following_url":"https://api.github.com/users/avinson/following{/other_user}","gists_url":"https://api.github.com/users/avinson/gists{/gist_id}","starred_url":"https://api.github.com/users/avinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinson/subscriptions","organizations_url":"https://api.github.com/users/avinson/orgs","repos_url":"https://api.github.com/users/avinson/repos","events_url":"https://api.github.com/users/avinson/events{/privacy}","received_events_url":"https://api.github.com/users/avinson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-16T10:44:34Z","updated_at":"2015-05-16T11:19:19Z","closed_at":"2015-05-16T11:19:19Z","body":"When a container is manually stopped, it should invalidate the auto-restart policy. This is an operational headache that we have encountered many times. \r\n\r\nThe typical scenario is as follows: a container is manually stopped (likely to push a new version) and then, sometime later, the host is rebooted for a kernel upgrade or the docker daemon is upgraded. As an unintended result, these containers get automatically started. The intention of the operator is to stop the container forever or until it is manually started again. As such, the auto-restart policy should be invalidated in these cases."}}