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
2026-04-27 19:55:41 +02:00
committed by GitHub
parent 3df0f59049
commit 7e71bff458
+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())