Set stdout and stderr.
diff --git a/pkg/cmd/util_commands.go b/pkg/cmd/util_commands.go
index c047c85..85f00bb 100644
--- a/pkg/cmd/util_commands.go
+++ b/pkg/cmd/util_commands.go
@@ -81,6 +81,10 @@
// Add files to the command line under the CAMEL_K_ROUTES flag.
cmd.Env = append(cmd.Env, "CAMEL_K_ROUTES="+strings.Join(formatRoutes(routes), ","))
+ // Set stdout and stderr.
+ cmd.Stderr = os.Stderr
+ cmd.Stdout = os.Stdout
+
return cmd
}
diff --git a/pkg/cmd/util_containerization.go b/pkg/cmd/util_containerization.go
index de7d5ea..caf82a9 100644
--- a/pkg/cmd/util_containerization.go
+++ b/pkg/cmd/util_containerization.go
@@ -150,6 +150,10 @@
args := docker.BuildIntegrationImageArgs(image)
cmd := exec.CommandContext(ctx, "docker", args...)
+ // Set stdout and stderr.
+ cmd.Stderr = os.Stderr
+ cmd.Stdout = os.Stdout
+
// Output executed command.
fmt.Printf("Executing: " + strings.Join(cmd.Args, " ") + "\n")
@@ -166,6 +170,10 @@
args := docker.RunIntegrationImageArgs(image)
cmd := exec.CommandContext(ctx, "docker", args...)
+ // Set stdout and stderr.
+ cmd.Stderr = os.Stderr
+ cmd.Stdout = os.Stdout
+
// Output executed command.
fmt.Printf("Executing: " + strings.Join(cmd.Args, " ") + "\n")