{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/41042716","id":41042716,"diff_hunk":"@@ -0,0 +1,145 @@\n+package idtools\n+\n+import (\n+\t\"fmt\"\n+\t\"math\"\n+\t\"os\"\n+\n+\t\"github.com/docker/docker/pkg/system\"\n+)\n+\n+// IDMap contains a single entry for user namespace range remapping. An array\n+// of IDMap entries represents the structure that will be provided to the Linux\n+// kernel for creating a user namespace.\n+type IDMap struct {\n+\tContainerID int `json:\"container_id\"`","path":"pkg/idtools/idtools.go","position":15,"original_position":15,"commit_id":"2d4717e622671b47a685e199b134c19abc282b5d","original_commit_id":"2d4717e622671b47a685e199b134c19abc282b5d","user":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"body":"for what we need json tags?","created_at":"2015-10-02T16:58:27Z","updated_at":"2015-10-02T16:58:27Z","html_url":"https://github.com/docker/docker/pull/12648#discussion_r41042716","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/12648","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/41042716"},"html":{"href":"https://github.com/docker/docker/pull/12648#discussion_r41042716"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/12648"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12648","id":33888671,"html_url":"https://github.com/docker/docker/pull/12648","diff_url":"https://github.com/docker/docker/pull/12648.diff","patch_url":"https://github.com/docker/docker/pull/12648.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/12648","number":12648,"state":"open","locked":false,"title":"Phase 1 implementation of user namespaces as a remapped container root","user":{"login":"estesp","id":1397980,"avatar_url":"https://avatars.githubusercontent.com/u/1397980?v=3","gravatar_id":"","url":"https://api.github.com/users/estesp","html_url":"https://github.com/estesp","followers_url":"https://api.github.com/users/estesp/followers","following_url":"https://api.github.com/users/estesp/following{/other_user}","gists_url":"https://api.github.com/users/estesp/gists{/gist_id}","starred_url":"https://api.github.com/users/estesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estesp/subscriptions","organizations_url":"https://api.github.com/users/estesp/orgs","repos_url":"https://api.github.com/users/estesp/repos","events_url":"https://api.github.com/users/estesp/events{/privacy}","received_events_url":"https://api.github.com/users/estesp/received_events","type":"User","site_admin":false},"body":"This pull request is an initial implementation of user namespace support in the Docker daemon that we are labeling an initial \"phase 1\" milestone with limited scope/capability; which hopefully will be available for use in Docker 1.7.\r\n\r\nThe code is designed to support full uid and gid maps, but this implementation limits the scope of usage to a remap of just the root uid/gid to a non-privileged user on the host.  This remapping is scoped at the Docker daemon level, so all containers running on a Docker daemon will have the same remapped uid/gid as root.  See PR #11253 for an initial discussion on the design.\r\n\r\nDiscussion of future, possibly more complex, phases should be separate from specific design/code review of this \"phase 1\" implementation--see the above-mentioned PR for discussions on more advanced use cases such as mapping complete uid/gid ranges per tenant in a multi-tenant environment.","created_at":"2015-04-22T18:48:09Z","updated_at":"2015-10-02T16:58:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e286fe9d9a3ef487fadd91b7ad04acefe537e85","assignee":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/41","html_url":"https://github.com/docker/docker/milestones/1.9.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/41/labels","id":1211905,"number":41,"title":"1.9.0","description":"","creator":{"login":"dmp42","id":332946,"avatar_url":"https://avatars.githubusercontent.com/u/332946?v=3","gravatar_id":"","url":"https://api.github.com/users/dmp42","html_url":"https://github.com/dmp42","followers_url":"https://api.github.com/users/dmp42/followers","following_url":"https://api.github.com/users/dmp42/following{/other_user}","gists_url":"https://api.github.com/users/dmp42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmp42/subscriptions","organizations_url":"https://api.github.com/users/dmp42/orgs","repos_url":"https://api.github.com/users/dmp42/repos","events_url":"https://api.github.com/users/dmp42/events{/privacy}","received_events_url":"https://api.github.com/users/dmp42/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":33,"state":"open","created_at":"2015-07-16T20:50:09Z","updated_at":"2015-10-01T18:27:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/12648/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/12648/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/12648/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/2d4717e622671b47a685e199b134c19abc282b5d","head":{"label":"estesp:userns-impl","ref":"userns-impl","sha":"2d4717e622671b47a685e199b134c19abc282b5d","user":{"login":"estesp","id":1397980,"avatar_url":"https://avatars.githubusercontent.com/u/1397980?v=3","gravatar_id":"","url":"https://api.github.com/users/estesp","html_url":"https://github.com/estesp","followers_url":"https://api.github.com/users/estesp/followers","following_url":"https://api.github.com/users/estesp/following{/other_user}","gists_url":"https://api.github.com/users/estesp/gists{/gist_id}","starred_url":"https://api.github.com/users/estesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estesp/subscriptions","organizations_url":"https://api.github.com/users/estesp/orgs","repos_url":"https://api.github.com/users/estesp/repos","events_url":"https://api.github.com/users/estesp/events{/privacy}","received_events_url":"https://api.github.com/users/estesp/received_events","type":"User","site_admin":false},"repo":{"id":23801241,"name":"docker","full_name":"estesp/docker","owner":{"login":"estesp","id":1397980,"avatar_url":"https://avatars.githubusercontent.com/u/1397980?v=3","gravatar_id":"","url":"https://api.github.com/users/estesp","html_url":"https://github.com/estesp","followers_url":"https://api.github.com/users/estesp/followers","following_url":"https://api.github.com/users/estesp/following{/other_user}","gists_url":"https://api.github.com/users/estesp/gists{/gist_id}","starred_url":"https://api.github.com/users/estesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estesp/subscriptions","organizations_url":"https://api.github.com/users/estesp/orgs","repos_url":"https://api.github.com/users/estesp/repos","events_url":"https://api.github.com/users/estesp/events{/privacy}","received_events_url":"https://api.github.com/users/estesp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estesp/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/estesp/docker","forks_url":"https://api.github.com/repos/estesp/docker/forks","keys_url":"https://api.github.com/repos/estesp/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estesp/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estesp/docker/teams","hooks_url":"https://api.github.com/repos/estesp/docker/hooks","issue_events_url":"https://api.github.com/repos/estesp/docker/issues/events{/number}","events_url":"https://api.github.com/repos/estesp/docker/events","assignees_url":"https://api.github.com/repos/estesp/docker/assignees{/user}","branches_url":"https://api.github.com/repos/estesp/docker/branches{/branch}","tags_url":"https://api.github.com/repos/estesp/docker/tags","blobs_url":"https://api.github.com/repos/estesp/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estesp/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estesp/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/estesp/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estesp/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/estesp/docker/languages","stargazers_url":"https://api.github.com/repos/estesp/docker/stargazers","contributors_url":"https://api.github.com/repos/estesp/docker/contributors","subscribers_url":"https://api.github.com/repos/estesp/docker/subscribers","subscription_url":"https://api.github.com/repos/estesp/docker/subscription","commits_url":"https://api.github.com/repos/estesp/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/estesp/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/estesp/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/estesp/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/estesp/docker/contents/{+path}","compare_url":"https://api.github.com/repos/estesp/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estesp/docker/merges","archive_url":"https://api.github.com/repos/estesp/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estesp/docker/downloads","issues_url":"https://api.github.com/repos/estesp/docker/issues{/number}","pulls_url":"https://api.github.com/repos/estesp/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/estesp/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/estesp/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estesp/docker/labels{/name}","releases_url":"https://api.github.com/repos/estesp/docker/releases{/id}","created_at":"2014-09-08T17:42:10Z","updated_at":"2015-06-05T16:30:54Z","pushed_at":"2015-10-01T21:34:44Z","git_url":"git://github.com/estesp/docker.git","ssh_url":"git@github.com:estesp/docker.git","clone_url":"https://github.com/estesp/docker.git","svn_url":"https://github.com/estesp/docker","homepage":"http://www.docker.com","size":70468,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"77da5d8feb5cf88446df0045240b4943ce4fc206","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-10-02T16:50:43Z","pushed_at":"2015-10-02T16:45:57Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":263681,"stargazers_count":25164,"watchers_count":25164,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6583,"mirror_url":null,"open_issues_count":1127,"forks":6583,"open_issues":1127,"watchers":25164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/12648"},"html":{"href":"https://github.com/docker/docker/pull/12648"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/12648"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/12648/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/12648/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/12648/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/2d4717e622671b47a685e199b134c19abc282b5d"}}}}