diff options
-rw-r--r-- | daemon/graphdriver/copy/copy.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/graphdriver/copy/copy.go b/daemon/graphdriver/copy/copy.go index 0fb8a1a9d9..8136b7a172 100644 --- a/daemon/graphdriver/copy/copy.go +++ b/daemon/graphdriver/copy/copy.go @@ -5,6 +5,7 @@ package copy // import "github.com/docker/docker/daemon/graphdriver/copy" import ( "container/list" + "errors" "fmt" "io" "os" @@ -90,6 +91,11 @@ func legacyCopy(srcFile io.Reader, dstFile io.Writer) error { func copyXattr(srcPath, dstPath, attr string) error { data, err := system.Lgetxattr(srcPath, attr) if err != nil { + if errors.Is(err, syscall.EOPNOTSUPP) { + // Task failed successfully: there is no xattr to copy + // if the source filesystem doesn't support xattrs. + return nil + } return err } if data != nil { |