{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/45262505","id":45262505,"diff_hunk":"@@ -16,7 +16,8 @@ weight=1\n \n     Copy files/folders between a container and the local filesystem\n \n-      --help=false        Print usage\n+      -L, --follow-link=false    Always follow symbol link in source","path":"docs/reference/commandline/cp.md","position":5,"original_position":5,"commit_id":"58e77acb09c565d41e6ced1af62f9058bc9c839b","original_commit_id":"58e77acb09c565d41e6ced1af62f9058bc9c839b","user":{"login":"WeiZhang555","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/WeiZhang555","html_url":"https://github.com/WeiZhang555","followers_url":"https://api.github.com/users/WeiZhang555/followers","following_url":"https://api.github.com/users/WeiZhang555/following{/other_user}","gists_url":"https://api.github.com/users/WeiZhang555/gists{/gist_id}","starred_url":"https://api.github.com/users/WeiZhang555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeiZhang555/subscriptions","organizations_url":"https://api.github.com/users/WeiZhang555/orgs","repos_url":"https://api.github.com/users/WeiZhang555/repos","events_url":"https://api.github.com/users/WeiZhang555/events{/privacy}","received_events_url":"https://api.github.com/users/WeiZhang555/received_events","type":"User","site_admin":false},"body":"I'll review contents above to see if there's any problem, so you can use its content any way.","created_at":"2015-11-18T21:25:27Z","updated_at":"2015-11-18T21:25:27Z","html_url":"https://github.com/docker/docker/pull/16613#discussion_r45262505","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/16613","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/45262505"},"html":{"href":"https://github.com/docker/docker/pull/16613#discussion_r45262505"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/16613"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/16613","id":46100790,"html_url":"https://github.com/docker/docker/pull/16613","diff_url":"https://github.com/docker/docker/pull/16613.diff","patch_url":"https://github.com/docker/docker/pull/16613.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/16613","number":16613,"state":"open","locked":false,"title":"Add option `-L` to allow `docker cp` follow symbol link","user":{"login":"WeiZhang555","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/WeiZhang555","html_url":"https://github.com/WeiZhang555","followers_url":"https://api.github.com/users/WeiZhang555/followers","following_url":"https://api.github.com/users/WeiZhang555/following{/other_user}","gists_url":"https://api.github.com/users/WeiZhang555/gists{/gist_id}","starred_url":"https://api.github.com/users/WeiZhang555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeiZhang555/subscriptions","organizations_url":"https://api.github.com/users/WeiZhang555/orgs","repos_url":"https://api.github.com/users/WeiZhang555/repos","events_url":"https://api.github.com/users/WeiZhang555/events{/privacy}","received_events_url":"https://api.github.com/users/WeiZhang555/received_events","type":"User","site_admin":false},"body":"fixes #16555\r\n\r\nWhen user try to cp a symbol link to/from a container, what the user\r\nreally want is to copy the link target but not the symbol link, as the\r\nsymbol link is only valid and useful in host/container's scope.\r\nAll in all, who will need a symbol link copied to container which points \r\nto some file on host? That's meaningless.\r\n\r\nAnd this is also the default behavior of a unix `cp` command.\r\n\r\nSigned-off-by: Zhang Wei <zhangwei555@huawei.com>","created_at":"2015-09-27T13:05:47Z","updated_at":"2015-11-18T21:25:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c39a3e21c8da2dcd2207b1ea9d5a5bdf3c2a68e","assignee":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/16613/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/16613/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/16613/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/58e77acb09c565d41e6ced1af62f9058bc9c839b","head":{"label":"WeiZhang555:docker-cp-symlink","ref":"docker-cp-symlink","sha":"58e77acb09c565d41e6ced1af62f9058bc9c839b","user":{"login":"WeiZhang555","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/WeiZhang555","html_url":"https://github.com/WeiZhang555","followers_url":"https://api.github.com/users/WeiZhang555/followers","following_url":"https://api.github.com/users/WeiZhang555/following{/other_user}","gists_url":"https://api.github.com/users/WeiZhang555/gists{/gist_id}","starred_url":"https://api.github.com/users/WeiZhang555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeiZhang555/subscriptions","organizations_url":"https://api.github.com/users/WeiZhang555/orgs","repos_url":"https://api.github.com/users/WeiZhang555/repos","events_url":"https://api.github.com/users/WeiZhang555/events{/privacy}","received_events_url":"https://api.github.com/users/WeiZhang555/received_events","type":"User","site_admin":false},"repo":{"id":29129000,"name":"docker","full_name":"WeiZhang555/docker","owner":{"login":"WeiZhang555","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/WeiZhang555","html_url":"https://github.com/WeiZhang555","followers_url":"https://api.github.com/users/WeiZhang555/followers","following_url":"https://api.github.com/users/WeiZhang555/following{/other_user}","gists_url":"https://api.github.com/users/WeiZhang555/gists{/gist_id}","starred_url":"https://api.github.com/users/WeiZhang555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeiZhang555/subscriptions","organizations_url":"https://api.github.com/users/WeiZhang555/orgs","repos_url":"https://api.github.com/users/WeiZhang555/repos","events_url":"https://api.github.com/users/WeiZhang555/events{/privacy}","received_events_url":"https://api.github.com/users/WeiZhang555/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WeiZhang555/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/WeiZhang555/docker","forks_url":"https://api.github.com/repos/WeiZhang555/docker/forks","keys_url":"https://api.github.com/repos/WeiZhang555/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WeiZhang555/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WeiZhang555/docker/teams","hooks_url":"https://api.github.com/repos/WeiZhang555/docker/hooks","issue_events_url":"https://api.github.com/repos/WeiZhang555/docker/issues/events{/number}","events_url":"https://api.github.com/repos/WeiZhang555/docker/events","assignees_url":"https://api.github.com/repos/WeiZhang555/docker/assignees{/user}","branches_url":"https://api.github.com/repos/WeiZhang555/docker/branches{/branch}","tags_url":"https://api.github.com/repos/WeiZhang555/docker/tags","blobs_url":"https://api.github.com/repos/WeiZhang555/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WeiZhang555/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WeiZhang555/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/WeiZhang555/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WeiZhang555/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/WeiZhang555/docker/languages","stargazers_url":"https://api.github.com/repos/WeiZhang555/docker/stargazers","contributors_url":"https://api.github.com/repos/WeiZhang555/docker/contributors","subscribers_url":"https://api.github.com/repos/WeiZhang555/docker/subscribers","subscription_url":"https://api.github.com/repos/WeiZhang555/docker/subscription","commits_url":"https://api.github.com/repos/WeiZhang555/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/WeiZhang555/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/WeiZhang555/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/WeiZhang555/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/WeiZhang555/docker/contents/{+path}","compare_url":"https://api.github.com/repos/WeiZhang555/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WeiZhang555/docker/merges","archive_url":"https://api.github.com/repos/WeiZhang555/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WeiZhang555/docker/downloads","issues_url":"https://api.github.com/repos/WeiZhang555/docker/issues{/number}","pulls_url":"https://api.github.com/repos/WeiZhang555/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/WeiZhang555/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/WeiZhang555/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WeiZhang555/docker/labels{/name}","releases_url":"https://api.github.com/repos/WeiZhang555/docker/releases{/id}","created_at":"2015-01-12T09:50:32Z","updated_at":"2015-04-23T10:47:58Z","pushed_at":"2015-11-13T02:50:01Z","git_url":"git://github.com/WeiZhang555/docker.git","ssh_url":"git@github.com:WeiZhang555/docker.git","clone_url":"https://github.com/WeiZhang555/docker.git","svn_url":"https://github.com/WeiZhang555/docker","homepage":"http://www.docker.com","size":73980,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"072ac5e7f061aaece6693bb17510b3e968ac4971","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-11-18T20:10:10Z","pushed_at":"2015-11-18T20:56:25Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":116473,"stargazers_count":26356,"watchers_count":26356,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7086,"mirror_url":null,"open_issues_count":1190,"forks":7086,"open_issues":1190,"watchers":26356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/16613"},"html":{"href":"https://github.com/docker/docker/pull/16613"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/16613"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/16613/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/16613/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/16613/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/58e77acb09c565d41e6ced1af62f9058bc9c839b"}}}}