{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10775","labels_url":"https://api.github.com/repos/docker/docker/issues/10775/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10775/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10775/events","html_url":"https://github.com/docker/docker/pull/10775","id":57644198,"number":10775,"title":"Add support for Dockerfile CMD options","user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-needs-code-review","name":"status/2-needs-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-13T19:42:00Z","updated_at":"2015-04-01T19:41:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/10775","html_url":"https://github.com/docker/docker/pull/10775","diff_url":"https://github.com/docker/docker/pull/10775.diff","patch_url":"https://github.com/docker/docker/pull/10775.patch"},"body":"Per the thread and @shykes approval at https://github.com/docker/docker/pull/9934#issuecomment-73937587 , this adds support for Dockerfile commands to have options - e.g:\r\n   COPY --user=john foo /tmp/\r\n   COPY --ignore-mtime foo /tmp/\r\n\r\nSupports both booleans and strings.  All options MUST come right after the Dockerfile command and MUST start with \"--\".  Anything not starting with \"--\" is considered to be a normal arg for the command. \"--\" can be used to denote the end of these BuilderFlags - to allow for a normal arg to start with \"--\" if needed.\r\n\r\nThis doesn't define any options yet for any commands, but rather defines the infrastructure to do so.  I added unit testcases for the parser and the new BuilderFlags structure.  Once merged, we can then discuss which options we want to add. Some up for consideration:\r\n- COPY --ignore-mtime ...\r\n- COPY --user=john ...\r\n- RUN --ignore-rc ...\r\n\r\nSigned-off-by: Doug Davis <dug@us.ibm.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/88606709","html_url":"https://github.com/docker/docker/pull/10775#issuecomment-88606709","issue_url":"https://api.github.com/repos/docker/docker/issues/10775","id":88606709,"user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T19:41:17Z","updated_at":"2015-04-01T19:41:17Z","body":"@LK4D4 I'm in the middle of something, so I'll double check later, but I think it should fail - see: https://github.com/docker/docker/pull/10775/files#diff-debba84a95b7e7f97f4de308f246aa5dR121\r\n"}}