{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libcontainer/issues/309","labels_url":"https://api.github.com/repos/docker/libcontainer/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/docker/libcontainer/issues/309/comments","events_url":"https://api.github.com/repos/docker/libcontainer/issues/309/events","html_url":"https://github.com/docker/libcontainer/issues/309","id":52694368,"number":309,"title":"work around child reaper","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-12-22T22:15:16Z","updated_at":"2015-01-06T02:04:07Z","closed_at":null,"body":"On rhel6 / centos6, docker 1.4.x no longer has a working `docker exec` and I have pinned it to the `PR_SET_CHILD_SUBREAPER` logic.\r\n\r\nThis is not the right work around, of defining it if not present:\r\nhttps://github.com/docker/libcontainer/commit/d6cd7ce43faa53d212052dbbcf209029ec2ec951\r\nIt will just cause a cryptic bubbled up error from the EINVAL\r\n\r\nRather the following works great instead. This patch is from docker/docker as of https://github.com/docker/docker/tree/b1cf41d952d8600e0d630600dd2c567e610d9b92 master.\r\n```diff\r\ndiff --git a/vendor/src/github.com/docker/libcontainer/namespaces/nsenter/nsenter.c b/vendor/src/github.com/docker/libcontainer/namespaces/nsenter/nsenter.c\r\nindex f060f63..02e4649 100644\r\n--- a/vendor/src/github.com/docker/libcontainer/namespaces/nsenter/nsenter.c\r\n+++ b/vendor/src/github.com/docker/libcontainer/namespaces/nsenter/nsenter.c\r\n@@ -89,10 +89,12 @@ void nsenter()\r\n                return;\r\n        }\r\n \r\n+#ifdef PR_SET_CHILD_SUBREAPER\r\n        if (prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0) == -1) {\r\n                 fprintf(stderr, \"nsenter: failed to set child subreaper: %s\", strerror(errno));\r\n                 exit(1);\r\n         }\r\n+#endif\r\n \r\n        static const struct option longopts[] = {\r\n                {\"nspid\", required_argument, NULL, 'n'},\r\n```\r\n\r\nWith not setting this child reaper, the `docker exec` continues to function as expected on centos6/rhel6.\r\n\r\np.s. I would open a PR for this against libcontainer master presently, but there appear to be some api changes from libcontainer that will need to be reconciled into docker first."},"comment":{"url":"https://api.github.com/repos/docker/libcontainer/issues/comments/68815613","html_url":"https://github.com/docker/libcontainer/issues/309#issuecomment-68815613","issue_url":"https://api.github.com/repos/docker/libcontainer/issues/309","id":68815613,"user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T02:04:07Z","updated_at":"2015-01-06T02:04:07Z","body":"@crosbymichael ... sarcasm?\r\nOn Jan 5, 2015 8:46 PM, \"Michael Crosby\" <notifications@github.com> wrote:\r\n\r\n> @vbatts <https://github.com/vbatts> FINE! you win\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/docker/libcontainer/issues/309#issuecomment-68814299>.\r\n>"}}