{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/31193223","id":31193223,"diff_hunk":"@@ -2181,6 +2181,19 @@ mount the volumes in read-only or read-write mode, respectively. By default,\n the volumes are mounted in the same mode (read write or read only) as\n the reference container.\n \n+Labeling systems like SELinux require proper labels be placed on volume content\n+mounted into a container, otherwise the security system might prevent the\n+processes running inside the container from using the content. By default,\n+volumes are not relabeled.","path":"docs/sources/reference/commandline/cli.md","position":7,"original_position":7,"commit_id":"b2a43baf2e2cc68c83383a7524441f81bc4c4725","original_commit_id":"b2a43baf2e2cc68c83383a7524441f81bc4c4725","user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"body":"This means that docker does not by default changing the labels set by the OS.","created_at":"2015-05-28T00:06:42Z","updated_at":"2015-05-28T00:06:42Z","html_url":"https://github.com/docker/docker/pull/12572#discussion_r31193223","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/12572","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/31193223"},"html":{"href":"https://github.com/docker/docker/pull/12572#discussion_r31193223"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/12572"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12572","id":33712732,"html_url":"https://github.com/docker/docker/pull/12572","diff_url":"https://github.com/docker/docker/pull/12572.diff","patch_url":"https://github.com/docker/docker/pull/12572.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/12572","number":12572,"state":"closed","locked":false,"title":"Modify volume mounts SELinux labels on the fly based on :Z or :z","user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"body":"carry of #5910\r\n\r\ncloses #5910\r\n\r\ncloses #13128\r\n","created_at":"2015-04-20T22:30:30Z","updated_at":"2015-05-28T00:06:42Z","closed_at":"2015-05-27T21:46:16Z","merged_at":"2015-05-27T21:46:16Z","merge_commit_sha":"1214303d67f0b63493aac17d20c624ae18a8ad9e","assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/38","html_url":"https://github.com/docker/docker/milestones/1.7.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/38/labels","id":1010239,"number":38,"title":"1.7.0","description":"Freeze May 26\r\nRelease  June 16","creator":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":35,"state":"open","created_at":"2015-03-07T01:54:49Z","updated_at":"2015-05-27T21:46:16Z","due_on":"2015-05-26T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/12572/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/12572/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/12572/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/b2a43baf2e2cc68c83383a7524441f81bc4c4725","head":{"label":"jfrazelle:selinux-labels-carry","ref":"selinux-labels-carry","sha":"b2a43baf2e2cc68c83383a7524441f81bc4c4725","user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"repo":{"id":21672903,"name":"docker","full_name":"jfrazelle/docker","owner":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfrazelle/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/jfrazelle/docker","forks_url":"https://api.github.com/repos/jfrazelle/docker/forks","keys_url":"https://api.github.com/repos/jfrazelle/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfrazelle/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfrazelle/docker/teams","hooks_url":"https://api.github.com/repos/jfrazelle/docker/hooks","issue_events_url":"https://api.github.com/repos/jfrazelle/docker/issues/events{/number}","events_url":"https://api.github.com/repos/jfrazelle/docker/events","assignees_url":"https://api.github.com/repos/jfrazelle/docker/assignees{/user}","branches_url":"https://api.github.com/repos/jfrazelle/docker/branches{/branch}","tags_url":"https://api.github.com/repos/jfrazelle/docker/tags","blobs_url":"https://api.github.com/repos/jfrazelle/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfrazelle/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfrazelle/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfrazelle/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfrazelle/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/jfrazelle/docker/languages","stargazers_url":"https://api.github.com/repos/jfrazelle/docker/stargazers","contributors_url":"https://api.github.com/repos/jfrazelle/docker/contributors","subscribers_url":"https://api.github.com/repos/jfrazelle/docker/subscribers","subscription_url":"https://api.github.com/repos/jfrazelle/docker/subscription","commits_url":"https://api.github.com/repos/jfrazelle/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfrazelle/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfrazelle/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfrazelle/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfrazelle/docker/contents/{+path}","compare_url":"https://api.github.com/repos/jfrazelle/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfrazelle/docker/merges","archive_url":"https://api.github.com/repos/jfrazelle/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfrazelle/docker/downloads","issues_url":"https://api.github.com/repos/jfrazelle/docker/issues{/number}","pulls_url":"https://api.github.com/repos/jfrazelle/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/jfrazelle/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/jfrazelle/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfrazelle/docker/labels{/name}","releases_url":"https://api.github.com/repos/jfrazelle/docker/releases{/id}","created_at":"2014-07-10T00:00:33Z","updated_at":"2015-05-07T23:03:55Z","pushed_at":"2015-05-27T21:48:25Z","git_url":"git://github.com/jfrazelle/docker.git","ssh_url":"git@github.com:jfrazelle/docker.git","clone_url":"https://github.com/jfrazelle/docker.git","svn_url":"https://github.com/jfrazelle/docker","homepage":"http://www.docker.com","size":58013,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"f5d33118394464e52eb29c781c1a8bb9345778c8","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-05-27T22:36:28Z","pushed_at":"2015-05-27T23:43:00Z","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":218585,"stargazers_count":21954,"watchers_count":21954,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5204,"mirror_url":null,"open_issues_count":1029,"forks":5204,"open_issues":1029,"watchers":21954,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/12572"},"html":{"href":"https://github.com/docker/docker/pull/12572"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/12572"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/12572/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/12572/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/12572/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/b2a43baf2e2cc68c83383a7524441f81bc4c4725"}}}}