{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/2259","labels_url":"https://api.github.com/repos/docker/docker/issues/2259/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/2259/comments","events_url":"https://api.github.com/repos/docker/docker/issues/2259/events","html_url":"https://github.com/docker/docker/issues/2259","id":21132999,"number":2259,"title":"Add ability to mount volume as user other than root","user":{"login":"mingfang","id":821695,"avatar_url":"https://avatars.githubusercontent.com/u/821695?v=3","gravatar_id":"","url":"https://api.github.com/users/mingfang","html_url":"https://github.com/mingfang","followers_url":"https://api.github.com/users/mingfang/followers","following_url":"https://api.github.com/users/mingfang/following{/other_user}","gists_url":"https://api.github.com/users/mingfang/gists{/gist_id}","starred_url":"https://api.github.com/users/mingfang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingfang/subscriptions","organizations_url":"https://api.github.com/users/mingfang/orgs","repos_url":"https://api.github.com/users/mingfang/repos","events_url":"https://api.github.com/users/mingfang/events{/privacy}","received_events_url":"https://api.github.com/users/mingfang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/api","name":"area/api","color":"e11d21"},{"url":"https://api.github.com/repos/docker/docker/labels/exp/expert","name":"exp/expert","color":"3B8686"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2013-10-17T05:13:47Z","updated_at":"2016-01-21T08:58:52Z","closed_at":null,"body":"Use case: mount a volume from host to container for use by apache as www user.\r\nThe problem is currently all mounts are mounted as root inside the container.\r\nFor example, this command\r\n docker run -v /tmp:/var/www ubuntu stat -c \"%U %G\" /var/www\r\nwill print \"root root\"\r\n\r\nI need to mount it as user www inside the container."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/173504615","html_url":"https://github.com/docker/docker/issues/2259#issuecomment-173504615","issue_url":"https://api.github.com/repos/docker/docker/issues/2259","id":173504615,"user":{"login":"dreamcat4","id":63074,"avatar_url":"https://avatars.githubusercontent.com/u/63074?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamcat4","html_url":"https://github.com/dreamcat4","followers_url":"https://api.github.com/users/dreamcat4/followers","following_url":"https://api.github.com/users/dreamcat4/following{/other_user}","gists_url":"https://api.github.com/users/dreamcat4/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamcat4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamcat4/subscriptions","organizations_url":"https://api.github.com/users/dreamcat4/orgs","repos_url":"https://api.github.com/users/dreamcat4/repos","events_url":"https://api.github.com/users/dreamcat4/events{/privacy}","received_events_url":"https://api.github.com/users/dreamcat4/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:58:52Z","updated_at":"2016-01-21T08:58:52Z","body":"Well you can try [s6-overlay](https://github.com/just-containers/s6-overlay). It includes features which are specifically targeted to help to work-around these kinds of problems."}}