for now,let's print the docker build
output to the console for debugging
This commit is contained in:
parent
c1cb6e3179
commit
78839ece3b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue