diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-06-19 09:11:29 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-19 14:14:18 +0000 |
commit | dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d (patch) | |
tree | 7fd7e74f8c29f1a797fdc140d53bc06e3175f28d /cmd/podman/build.go | |
parent | 7676cd4b121381792c0491fe9827d17ab75af37f (diff) | |
download | podman-dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d.tar.gz podman-dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d.tar.bz2 podman-dfd34b1b03d3ec0447fb04e15b2d0861a4a9778d.zip |
Fix podman build -q
Only thing that should be printed is the image id.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #964
Approved by: mheon
Diffstat (limited to 'cmd/podman/build.go')
-rw-r--r-- | cmd/podman/build.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/build.go b/cmd/podman/build.go index 1f05da918..01f531814 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -1,6 +1,7 @@ package main import ( + "io/ioutil" "os" "path/filepath" "strings" @@ -211,8 +212,8 @@ func buildCmd(c *cli.Context) error { ForceRmIntermediateCtrs: c.Bool("force-rm"), } - if !c.Bool("quiet") { - options.ReportWriter = os.Stderr + if c.Bool("quiet") { + options.ReportWriter = ioutil.Discard } return runtime.Build(getContext(), options, dockerfiles...) |