{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/7198","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/7198/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/7198/comments","events_url":"https://api.github.com/repos/docker/docker/issues/7198/events","html_url":"https://github.com/docker/docker/issues/7198","id":38568014,"number":7198,"title":"Make uid & gid configurable for shared volumes","user":{"login":"digital-wonderland","id":2522615,"avatar_url":"https://avatars.githubusercontent.com/u/2522615?v=3","gravatar_id":"","url":"https://api.github.com/users/digital-wonderland","html_url":"https://github.com/digital-wonderland","followers_url":"https://api.github.com/users/digital-wonderland/followers","following_url":"https://api.github.com/users/digital-wonderland/following{/other_user}","gists_url":"https://api.github.com/users/digital-wonderland/gists{/gist_id}","starred_url":"https://api.github.com/users/digital-wonderland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digital-wonderland/subscriptions","organizations_url":"https://api.github.com/users/digital-wonderland/orgs","repos_url":"https://api.github.com/users/digital-wonderland/repos","events_url":"https://api.github.com/users/digital-wonderland/events{/privacy}","received_events_url":"https://api.github.com/users/digital-wonderland/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":102,"created_at":"2014-07-23T20:23:03Z","updated_at":"2016-03-31T16:08:54Z","closed_at":"2016-03-03T22:15:36Z","body":"Please provide an option to make ownership of shared volumes configurable.\r\n\r\nFor example my current use case is to have logstash-forwarder running within a container, that has /var/lib/docker shared read-only as volume from the host.\r\n\r\nSince /var/lib/docker is set to 0700 root:root on the host I can't access the volume as non root user.\r\n\r\nWhat I would like to have is something like with NFS where one can map uid & gid from the host to users & groups on the client.\r\n\r\nI.e. docker run -v /var/lib/docker:/var/lib/docker:ro:$user:$group would make the volume available in the container as read only, belonging to $user:$group."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/204002881","html_url":"https://github.com/docker/docker/issues/7198#issuecomment-204002881","issue_url":"https://api.github.com/repos/docker/docker/issues/7198","id":204002881,"user":{"login":"docbill","id":3169368,"avatar_url":"https://avatars.githubusercontent.com/u/3169368?v=3","gravatar_id":"","url":"https://api.github.com/users/docbill","html_url":"https://github.com/docbill","followers_url":"https://api.github.com/users/docbill/followers","following_url":"https://api.github.com/users/docbill/following{/other_user}","gists_url":"https://api.github.com/users/docbill/gists{/gist_id}","starred_url":"https://api.github.com/users/docbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docbill/subscriptions","organizations_url":"https://api.github.com/users/docbill/orgs","repos_url":"https://api.github.com/users/docbill/repos","events_url":"https://api.github.com/users/docbill/events{/privacy}","received_events_url":"https://api.github.com/users/docbill/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T16:08:54Z","updated_at":"2016-03-31T16:08:54Z","body":"Please reopen this issue.  The new local driver does not seem to at all address the issue of mounting local host directories with selected user id's."}}