diff --git a/build/opt.go b/build/opt.go index b27e4c66..5d05e25a 100644 --- a/build/opt.go +++ b/build/opt.go @@ -162,7 +162,7 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op case 1: // valid case 0: - if !noDefaultLoad() { + if !noDefaultLoad() && opt.PrintFunc == nil { if nodeDriver.IsMobyDriver() { // backwards compat for docker driver only: // this ensures the build results in a docker image.