{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27303","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27303/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27303/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27303/events","html_url":"https://github.com/docker/docker/pull/27303","id":182378480,"number":27303,"title":"Add --user flag to Dockerfile ADD and COPY","user":{"login":"ardnaxelarak","id":7015167,"avatar_url":"https://avatars.githubusercontent.com/u/7015167?v=3","gravatar_id":"","url":"https://api.github.com/users/ardnaxelarak","html_url":"https://github.com/ardnaxelarak","followers_url":"https://api.github.com/users/ardnaxelarak/followers","following_url":"https://api.github.com/users/ardnaxelarak/following{/other_user}","gists_url":"https://api.github.com/users/ardnaxelarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ardnaxelarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardnaxelarak/subscriptions","organizations_url":"https://api.github.com/users/ardnaxelarak/orgs","repos_url":"https://api.github.com/users/ardnaxelarak/repos","events_url":"https://api.github.com/users/ardnaxelarak/events{/privacy}","received_events_url":"https://api.github.com/users/ardnaxelarak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/1-design-review","name":"status/1-design-review","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-11T21:25:06Z","updated_at":"2016-10-12T23:53:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/27303","html_url":"https://github.com/docker/docker/pull/27303","diff_url":"https://github.com/docker/docker/pull/27303.diff","patch_url":"https://github.com/docker/docker/pull/27303.patch"},"body":"**- What I did**\r\nAdd a `--user` flag to Dockerfile ADD and COPY instructions, proposed by #13600\r\n\r\n**- How I did it**\r\nAdded flag to `add` and `disptachCopy` of `builder/dockerfile/dispatchers.go`, and passed the relevant information through to the daemon which looks up the user/group using a new function on the container object.\r\n\r\n**- How to verify it**\r\nCreate a Dockerfile that uses the `--user` flag on an ADD or COPY instruction, and check that the file is listed as having the appropriate owner\r\n\r\n**- Description for the changelog**\r\nadd `--user` flag to Dockerfile ADD and COPY instructions\r\n\r\n**- A picture of a cute animal (not mandatory but encouraged)**\r\n![Capybara on grass](http://static.theglobeandmail.ca/a63/news/toronto/article30639614.ece/ALTERNATES/w620/web-to-capybara-0628.JPG)\r\n\r\nSigned-off-by: Kara Alexandra <kalexandra@us.ibm.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/253372601","html_url":"https://github.com/docker/docker/pull/27303#issuecomment-253372601","issue_url":"https://api.github.com/repos/docker/docker/issues/27303","id":253372601,"user":{"login":"ardnaxelarak","id":7015167,"avatar_url":"https://avatars.githubusercontent.com/u/7015167?v=3","gravatar_id":"","url":"https://api.github.com/users/ardnaxelarak","html_url":"https://github.com/ardnaxelarak","followers_url":"https://api.github.com/users/ardnaxelarak/followers","following_url":"https://api.github.com/users/ardnaxelarak/following{/other_user}","gists_url":"https://api.github.com/users/ardnaxelarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ardnaxelarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardnaxelarak/subscriptions","organizations_url":"https://api.github.com/users/ardnaxelarak/orgs","repos_url":"https://api.github.com/users/ardnaxelarak/repos","events_url":"https://api.github.com/users/ardnaxelarak/events{/privacy}","received_events_url":"https://api.github.com/users/ardnaxelarak/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T23:53:16Z","updated_at":"2016-10-12T23:53:16Z","body":"> @ardnaxelarak I tested this with user namespace and it didn't seem to work properly. I had no new files after `ADD` instruction.\r\n\r\nI've reproduced this locally and will look into it\r\n"}}
{"actor":{"display_login":"ardnaxelarak"}}