{"action":"closed","issue":{"url":"https://api.github.com/repos/gliderlabs/docker-consul/issues/34","labels_url":"https://api.github.com/repos/gliderlabs/docker-consul/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/docker-consul/issues/34/comments","events_url":"https://api.github.com/repos/gliderlabs/docker-consul/issues/34/events","html_url":"https://github.com/gliderlabs/docker-consul/issues/34","id":48003898,"number":34,"title":"Add leave_on_terminate = true to the default consul configuration","user":{"login":"rocketraman","id":53049,"avatar_url":"https://avatars.githubusercontent.com/u/53049?v=3","gravatar_id":"","url":"https://api.github.com/users/rocketraman","html_url":"https://github.com/rocketraman","followers_url":"https://api.github.com/users/rocketraman/followers","following_url":"https://api.github.com/users/rocketraman/following{/other_user}","gists_url":"https://api.github.com/users/rocketraman/gists{/gist_id}","starred_url":"https://api.github.com/users/rocketraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocketraman/subscriptions","organizations_url":"https://api.github.com/users/rocketraman/orgs","repos_url":"https://api.github.com/users/rocketraman/repos","events_url":"https://api.github.com/users/rocketraman/events{/privacy}","received_events_url":"https://api.github.com/users/rocketraman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-06T19:31:07Z","updated_at":"2015-06-30T18:08:08Z","closed_at":"2015-06-30T18:08:08Z","body":"When doing \"docker stop\" on a container, the consul process will receive a SIGTERM. However, the consul agent does not leave the cluster gracefully upon SIGTERM by default. This results in problems when the node is restarted because it is assigned a new IP address. This then triggers this bug: https://github.com/hashicorp/consul/issues/457.\r\n\r\nBy adding leave_on_terminate = true to the consul configuration in `/config/consul.json` a `docker stop` command would be treated by consul as a graceful shutdown of that agent."}}