From 78839ece3be6feb16517e2026b90053664005f83 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sun, 9 Feb 2014 12:46:24 -0700 Subject: [PATCH] for now,let's print the `docker build` output to the console for debugging --- pkg/build/docker/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/build/docker/image.go b/pkg/build/docker/image.go index 259128f86..85954b057 100644 --- a/pkg/build/docker/image.go +++ b/pkg/build/docker/image.go @@ -110,7 +110,7 @@ func (c *ImageService) Build(tag, dir string) error { v := url.Values{} v.Set("t", tag) v.Set("q", "1") - //v.Set("rm", "1") + v.Set("rm", "1") // url path path := fmt.Sprintf("/build?%s", v.Encode()) @@ -120,5 +120,5 @@ func (c *ImageService) Build(tag, dir string) error { headers.Set("Content-Type", "application/tar") // make the request - return c.stream("POST", path, body, nil, headers) + return c.stream("POST", path, body, os.Stdout, headers) }