{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/16896","labels_url":"https://api.github.com/repos/docker/docker/issues/16896/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/16896/comments","events_url":"https://api.github.com/repos/docker/docker/issues/16896/events","html_url":"https://github.com/docker/docker/issues/16896","id":110753392,"number":16896,"title":"revert following symlinks in docker cp","user":{"login":"aespinosa","id":58771,"avatar_url":"https://avatars.githubusercontent.com/u/58771?v=3","gravatar_id":"","url":"https://api.github.com/users/aespinosa","html_url":"https://github.com/aespinosa","followers_url":"https://api.github.com/users/aespinosa/followers","following_url":"https://api.github.com/users/aespinosa/following{/other_user}","gists_url":"https://api.github.com/users/aespinosa/gists{/gist_id}","starred_url":"https://api.github.com/users/aespinosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aespinosa/subscriptions","organizations_url":"https://api.github.com/users/aespinosa/orgs","repos_url":"https://api.github.com/users/aespinosa/repos","events_url":"https://api.github.com/users/aespinosa/events{/privacy}","received_events_url":"https://api.github.com/users/aespinosa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-09T23:46:56Z","updated_at":"2015-10-10T00:49:06Z","closed_at":"2015-10-10T00:47:35Z","body":"Description of problem:\r\n\r\nThis was disabled with the fix in #14885 . Adding a flag to the `docker cp` command like `-L' or '-H' like in the `cp` command can probably enable this feature back again.\r\n\r\n\r\n\r\n`docker version`:\r\n\r\n```\r\nClient:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:08:05 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.2\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   0a8c2e3\r\n Built:        Thu Sep 10 19:08:05 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\n`docker info`:\r\n```\r\nContainers: 2\r\nImages: 164\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 168\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: syslog\r\nKernel Version: 3.16.0-4-amd64\r\nOperating System: Debian GNU/Linux 8 (jessie)\r\nCPUs: 1\r\nTotal Memory: 494.5 MiB\r\nName: dockerhost.localdomain\r\nID: F57Q:73M5:HAGL:SGHI:MM4B:T6FI:RWIY:IRDD:SL4S:7DFY:BONC:V6DA\r\nUsername: aespinosa\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No memory limit support\r\nWARNING: No swap limit support\r\n```\r\n\r\n`uname -a`: `uname -a\r\nLinux dockerhost.localdomain 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64 GNU/Linux`\r\n\r\nHow reproducible:\r\n\r\nJust `docker cp` a symlink inside a container to the host. \r\n\r\nSteps to reproduce:\r\n\r\nSee above description\r\n\r\nActual results:\r\n\r\nA symlink\r\n\r\nExpected result:\r\n\r\nA file\r\n\r\nAdditional info:\r\n\r\nI think the change was major and broke the existing functionality. In reenabling the feature I think not following symlinks should be the flag and following symlinks be the default."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/147018023","html_url":"https://github.com/docker/docker/issues/16896#issuecomment-147018023","issue_url":"https://api.github.com/repos/docker/docker/issues/16896","id":147018023,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T00:49:06Z","updated_at":"2015-10-10T00:49:06Z","body":"Oops, beat me to it :+1: "}}