diff --git a/pkg/build/docker/image.go b/pkg/build/docker/image.go index 259128f8..85954b05 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) }