fix(containermanager): add MultiWriter to podman (#2073)

* feat(providers): show pull progress when downloading container images

* fix(containermanager): add MultiWriter to podman
This commit is contained in:
Alessio Biancalana committed 2026-06-14 13:04:28 +02:00
1 parent 1981ca41e7
commit 514c7fffda
1 file changed
+6
+6
View File
@@ -6,6 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
@@ -482,6 +483,11 @@ func (p *Podman) run(ctx context.Context, args []string, opts runOptions) (strin
cmd.Stdout = &stdout
cmd.Stderr = &stderr
if opts.TailLogs {
cmd.Stdout = io.MultiWriter(&stdout, os.Stdout)
cmd.Stderr = io.MultiWriter(&stderr, os.Stderr)
}
err := cmd.Run()
if err != nil {
captured := strings.TrimSpace(stderr.String())