aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorVladimir Kochnev <hashtable@yandex.ru>2022-08-17 03:56:25 +0300
committerVladimir Kochnev <hashtable@yandex.ru>2022-08-18 23:48:43 +0300
commitec9508ea177a50ff3361a9ef14efbe1ff6baf05d (patch)
tree112e1fe22769dd62b0feb75684cec74c4070fdfa /cmd/podman/images
parente48681e600e55718a9699006ac940738fa08f896 (diff)
downloadpodman-ec9508ea177a50ff3361a9ef14efbe1ff6baf05d.tar.gz
podman-ec9508ea177a50ff3361a9ef14efbe1ff6baf05d.tar.bz2
podman-ec9508ea177a50ff3361a9ef14efbe1ff6baf05d.zip
Pass io.Writer when pushing images/manifests from command line
[NO NEW TESTS NEEDED] Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/push.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go
index 1734900de..fa60860db 100644
--- a/cmd/podman/images/push.go
+++ b/cmd/podman/images/push.go
@@ -164,6 +164,10 @@ func imagePush(cmd *cobra.Command, args []string) error {
pushOptions.Password = creds.Password
}
+ if !pushOptions.Quiet {
+ pushOptions.Writer = os.Stderr
+ }
+
if err := common.PrepareSigningPassphrase(&pushOptions.ImagePushOptions, pushOptions.SignPassphraseFileCLI); err != nil {
return err
}