{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12858","labels_url":"https://api.github.com/repos/docker/docker/issues/12858/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12858/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12858/events","html_url":"https://github.com/docker/docker/pull/12858","id":71652727,"number":12858,"title":"Respect shell globs when running `docker cp`.","user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/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":9,"created_at":"2015-04-28T17:32:49Z","updated_at":"2015-05-04T21:16:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12858","html_url":"https://github.com/docker/docker/pull/12858","diff_url":"https://github.com/docker/docker/pull/12858.diff","patch_url":"https://github.com/docker/docker/pull/12858.patch"},"body":"Fixes #6013\n\n/cc @huslage, @jlhawn\n\nSigned-off-by: David Calavera <david.calavera@gmail.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/98851672","html_url":"https://github.com/docker/docker/pull/12858#issuecomment-98851672","issue_url":"https://api.github.com/repos/docker/docker/issues/12858","id":98851672,"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-05-04T21:16:16Z","updated_at":"2015-05-04T21:16:16Z","body":"I haven't been able to figure out what's going on but I do see something kind of neat/funky  :-)\r\n```\r\n$curl -s -H \"Content-Type:application/json\" -X POST -d '{\"Resource\":\"/*\"}' http://127.0.0.1:2376/v1.19/containers/bee37b85c512/copy  | tar -tf- | head -10\r\n.dockerenv\r\n.dockerinit\r\na/\r\na/b/\r\na/b/c/\r\na/b/c/d/\r\na/b/c/d/e/\r\na/b/c/d/e/file\r\n...\r\n\r\nBut then look at this:\r\n$curl -s -H \"Content-Type:application/json\" -X POST -d '{\"Resource\":\"/\"}' http://127.0.0.1:2376/v1.19/containers/bee37b85c512/copy  | tar -tf- | head -10\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/.dockerenv\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/.dockerinit\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/a/\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/a/b/\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/a/b/c/\r\nbee37b85c512f864f46b01c12bf33e3e80cbb286a3b91ef69051c03b788d27a8/a/b/c/d/\r\n...\r\n```\r\nI don't know for sure but I'm guessing this might have something to do with this line:\r\nhttps://github.com/docker/docker/pull/12858/files?diff=unified#diff-6ce9e79ddb91a3f06352abe1f2c72ecbR1645\r\nand then passing in \"\" as an IncludeFile into the archiver.  But didn't dig any deeper yet...."}}