diff --git a/daemon/graphdriver/copy/copy.go b/daemon/graphdriver/copy/copy.go index 1d2ee60b99..388bfe73d4 100644 --- a/daemon/graphdriver/copy/copy.go +++ b/daemon/graphdriver/copy/copy.go @@ -159,6 +159,7 @@ func DirCopy(srcDir, dstDir string, copyMode Mode, copyOpaqueXattrs bool) error return err2 } } else if hardLinkDstPath, ok := copiedFiles[id]; ok { + isHardlink = true if err2 := os.Link(hardLinkDstPath, dstPath); err2 != nil { return err2 }