mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add a progress bar to docker pull
This commit is contained in:
parent
a6779bcae2
commit
b64dfdd8cd
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ func (graph *Graph) getRemoteImage(stdout io.Writer, imgId string, authConfig *a
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
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 {
|
func (graph *Graph) PullImage(stdout io.Writer, imgId string, authConfig *auth.AuthConfig) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue