Merge pull request #5954 from vieux/fix_cp_error

Ignore lchown error on docker cp
This commit is contained in:
unclejack
2014-05-21 15:55:57 +03:00
6 changed files with 51 additions and 10 deletions
+1 -1
View File
@@ -2058,7 +2058,7 @@ func (cli *DockerCli) CmdCp(args ...string) error {
}
if statusCode == 200 {
if err := archive.Untar(stream, copyData.Get("HostPath"), nil); err != nil {
if err := archive.Untar(stream, copyData.Get("HostPath"), &archive.TarOptions{NoLchown: true}); err != nil {
return err
}
}