{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/docker-containers/issues/6","labels_url":"https://api.github.com/repos/mesosphere/docker-containers/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/docker-containers/issues/6/comments","events_url":"https://api.github.com/repos/mesosphere/docker-containers/issues/6/events","html_url":"https://github.com/mesosphere/docker-containers/issues/6","id":55466456,"number":6,"title":"Add note about recovery in docker containers","user":{"login":"bobrik","id":89186,"avatar_url":"https://avatars.githubusercontent.com/u/89186?v=3","gravatar_id":"","url":"https://api.github.com/users/bobrik","html_url":"https://github.com/bobrik","followers_url":"https://api.github.com/users/bobrik/followers","following_url":"https://api.github.com/users/bobrik/following{/other_user}","gists_url":"https://api.github.com/users/bobrik/gists{/gist_id}","starred_url":"https://api.github.com/users/bobrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobrik/subscriptions","organizations_url":"https://api.github.com/users/bobrik/orgs","repos_url":"https://api.github.com/users/bobrik/repos","events_url":"https://api.github.com/users/bobrik/events{/privacy}","received_events_url":"https://api.github.com/users/bobrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T10:24:21Z","updated_at":"2015-03-25T19:50:43Z","closed_at":null,"body":"Since all executors run in the same container as mesos-slave, they all die during upgrade. This results to inability to reconnect to executors during upgrades which leads to wiping of all running tasks.\r\n\r\nThis should be mentioned on [docker hub page](https://registry.hub.docker.com/u/mesosphere/mesos-slave/).\r\n\r\nIf there is a solution, I'd love to know about it."},"comment":{"url":"https://api.github.com/repos/mesosphere/docker-containers/issues/comments/86190808","html_url":"https://github.com/mesosphere/docker-containers/issues/6#issuecomment-86190808","issue_url":"https://api.github.com/repos/mesosphere/docker-containers/issues/6","id":86190808,"user":{"login":"ederst","id":2979051,"avatar_url":"https://avatars.githubusercontent.com/u/2979051?v=3","gravatar_id":"","url":"https://api.github.com/users/ederst","html_url":"https://github.com/ederst","followers_url":"https://api.github.com/users/ederst/followers","following_url":"https://api.github.com/users/ederst/following{/other_user}","gists_url":"https://api.github.com/users/ederst/gists{/gist_id}","starred_url":"https://api.github.com/users/ederst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederst/subscriptions","organizations_url":"https://api.github.com/users/ederst/orgs","repos_url":"https://api.github.com/users/ederst/repos","events_url":"https://api.github.com/users/ederst/events{/privacy}","received_events_url":"https://api.github.com/users/ederst/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T19:50:43Z","updated_at":"2015-03-25T19:50:43Z","body":"Yeah that's a bummer, just found that out.\r\n\r\nI think there is no easy solution to that, since the processes when executing Mesos slave the normal way (without docker container), the executor processes are switched to the init process (pid 1). To my understanding, this is not be possible when a containerized process dies, because it  would violate the whole container idea.\r\n\r\nHowever, maybe it is possible to create a Mesos executor image (basically the Mesos slave image but without the mesos-slave ENTRYPOINT) and switch the mesos-executor binary/script of the Mesos slave image with a script which executes this Mesos executor image.\r\n\r\nSince mesos-slave is already spawning Docker containers on the host system (`-v /var/run/docker.sock:/var/run/docker.sock`) the Mesos executor container probably won't die when the slave prozess gets killed. This mesos-executor container also needs to be started with `--pid=\"host\"`.\r\n\r\nSounds hacky, but it maybe it will work. I'll try that."}}