diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index 93a1100c38..5b8993e969 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -911,6 +911,6 @@ func extractTarFile(r *http.Request) (string, error) { } _, _ = tarBall.Seek(0, 0) - err = archive.Untar(tarBall, buildDir, nil) + err = archive.Untar(tarBall, buildDir, &archive.TarOptions{NoLchown: true}) return buildDir, err }