Skip to content

Commit

Permalink
fix: Avoid trying to pull local image
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Jan 9, 2024
1 parent 172686b commit 0432c0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0432c0c

Please sign in to comment.