From c44b71c9962f527e9c8847a7a3b959c71ac41b21 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Wed, 22 Apr 2020 23:48:25 -0700 Subject: [PATCH] fix: ignore symlink errors --- pkg/container/docker_run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 19b8a47..8a53726 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -384,6 +384,10 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe // copy file data into tar writer if _, err := io.Copy(tw, f); err != nil { + if fi.Mode()&os.ModeSymlink == os.ModeSymlink { + logger.Warnf("Unable to copy link %s --> %s", fi.Name(), linkName) + err = nil + } return err }