Add a progress bar to docker pull

Upstream-commit: b64dfdd8cd636c5138dbd700f60e41651bae3e15
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-03-31 13:04:41 -07:00
parent fa190ee6b5
commit 85a2b99bef

View File

@ -135,7 +135,7 @@ func (graph *Graph) getRemoteImage(stdout io.Writer, imgId string, authConfig *a
if err != nil {
return nil, nil, err
}
return img, res.Body, nil
return img, ProgressReader(res.Body, int(res.ContentLength), stdout), nil
}
func (graph *Graph) PullImage(stdout io.Writer, imgId string, authConfig *auth.AuthConfig) error {