diff --git a/core/oci.go b/core/oci.go index 1797ba41..670d418a 100644 --- a/core/oci.go +++ b/core/oci.go @@ -79,10 +79,12 @@ func OciExportRootFs(buildImageName string, imageRecipe *ImageRecipe, transDir s } // pull image - err = pullImageWithProgressbar(pt, buildImageName, imageRecipe) - if err != nil { - PrintVerboseErr("OciExportRootFs", 6.1, err) - return err + if !strings.HasPrefix(imageRecipe.From, "localhost/") { + err = pullImageWithProgressbar(pt, buildImageName, imageRecipe) + if err != nil { + PrintVerboseErr("OciExportRootFs", 6.1, err) + return err + } } // build image