{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/34263","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/34263/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/34263/comments","events_url":"https://api.github.com/repos/moby/moby/issues/34263/events","html_url":"https://github.com/moby/moby/pull/34263","id":245780688,"number":34263,"title":"Add --chown flag to ADD/COPY commands","user":{"login":"estesp","id":1397980,"avatar_url":"https://avatars0.githubusercontent.com/u/1397980?v=4","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},"labels":[{"id":73616520,"url":"https://api.github.com/repos/moby/moby/labels/area/builder","name":"area/builder","color":"fbca04","default":false},{"id":237472270,"url":"https://api.github.com/repos/moby/moby/labels/impact/changelog","name":"impact/changelog","color":"bfe5bf","default":false},{"id":237472335,"url":"https://api.github.com/repos/moby/moby/labels/impact/dockerfile","name":"impact/dockerfile","color":"bfe5bf","default":false},{"id":450032382,"url":"https://api.github.com/repos/moby/moby/labels/impact/documentation","name":"impact/documentation","color":"bfe5bf","default":false},{"id":179237833,"url":"https://api.github.com/repos/moby/moby/labels/kind/feature","name":"kind/feature","color":"AAB3AB","default":false},{"id":175375407,"url":"https://api.github.com/repos/moby/moby/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7","default":false}],"state":"closed","locked":false,"assignee":{"login":"ehazlett","id":260642,"avatar_url":"https://avatars0.githubusercontent.com/u/260642?v=4","gravatar_id":"","url":"https://api.github.com/users/ehazlett","html_url":"https://github.com/ehazlett","followers_url":"https://api.github.com/users/ehazlett/followers","following_url":"https://api.github.com/users/ehazlett/following{/other_user}","gists_url":"https://api.github.com/users/ehazlett/gists{/gist_id}","starred_url":"https://api.github.com/users/ehazlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehazlett/subscriptions","organizations_url":"https://api.github.com/users/ehazlett/orgs","repos_url":"https://api.github.com/users/ehazlett/repos","events_url":"https://api.github.com/users/ehazlett/events{/privacy}","received_events_url":"https://api.github.com/users/ehazlett/received_events","type":"User","site_admin":false},"assignees":[{"login":"ehazlett","id":260642,"avatar_url":"https://avatars0.githubusercontent.com/u/260642?v=4","gravatar_id":"","url":"https://api.github.com/users/ehazlett","html_url":"https://github.com/ehazlett","followers_url":"https://api.github.com/users/ehazlett/followers","following_url":"https://api.github.com/users/ehazlett/following{/other_user}","gists_url":"https://api.github.com/users/ehazlett/gists{/gist_id}","starred_url":"https://api.github.com/users/ehazlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehazlett/subscriptions","organizations_url":"https://api.github.com/users/ehazlett/orgs","repos_url":"https://api.github.com/users/ehazlett/repos","events_url":"https://api.github.com/users/ehazlett/events{/privacy}","received_events_url":"https://api.github.com/users/ehazlett/received_events","type":"User","site_admin":false}],"milestone":null,"comments":19,"created_at":"2017-07-26T16:28:49Z","updated_at":"2017-08-30T10:53:47Z","closed_at":"2017-08-28T16:50:45Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/moby/moby/pulls/34263","html_url":"https://github.com/moby/moby/pull/34263","diff_url":"https://github.com/moby/moby/pull/34263.diff","patch_url":"https://github.com/moby/moby/pull/34263.patch"},"body":"Carry #28499 (which was a carry of #27303)\r\n\r\nThis adds `--chown` function to the `ADD` and `COPY` commands in `Dockerfile`. The format of the `--chown` flag allows any uid/username and gid/groupname combination separated by a colon, e.g.:\r\n```\r\n--chown someuser:555\r\n--chown anyuser:anygroup\r\n--chown 1001:1002\r\n--chown 333:agroupname\r\n```\r\n\r\nLookups (to translate name -> ID integer) will use the `/etc/passwd` and `/etc/group` files found in the container filesystem. Currently if they do not exist, then the `docker build` will fail. This PR probably needs a way to fail gracefully (or ignore failures) on Windows as those containers will not have these files. If only numeric IDs are used, no lookups will be performed.\r\n\r\nUser namespaces are supported and IDs will be shifted (after translated names to integers) based on the user namespace mappings set in the daemon.\r\n\r\nI also think a few more tests are necessary to fully test the behavior, but wanted to get the rebased code available for review initially."},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/325955586","html_url":"https://github.com/moby/moby/pull/34263#issuecomment-325955586","issue_url":"https://api.github.com/repos/moby/moby/issues/34263","id":325955586,"user":{"login":"Silex","id":16015,"avatar_url":"https://avatars3.githubusercontent.com/u/16015?v=4","gravatar_id":"","url":"https://api.github.com/users/Silex","html_url":"https://github.com/Silex","followers_url":"https://api.github.com/users/Silex/followers","following_url":"https://api.github.com/users/Silex/following{/other_user}","gists_url":"https://api.github.com/users/Silex/gists{/gist_id}","starred_url":"https://api.github.com/users/Silex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silex/subscriptions","organizations_url":"https://api.github.com/users/Silex/orgs","repos_url":"https://api.github.com/users/Silex/repos","events_url":"https://api.github.com/users/Silex/events{/privacy}","received_events_url":"https://api.github.com/users/Silex/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T10:53:47Z","updated_at":"2017-08-30T10:53:47Z","author_association":"NONE","body":"In what docker version can we expect this feature to land?"}}
{"actor":{"display_login":"Silex"}}