1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Pull parent layers first before children

Upstream-commit: 7301fbe035ca450e2aea86b8f2467cffd3fac18b
Component: engine
This commit is contained in:
Michael Crosby
2013-11-12 11:48:35 -08:00
parent 084cb15f1a
commit 67a0c658d3

View File

@@ -537,7 +537,8 @@ func (srv *Server) pullImage(r *registry.Registry, out io.Writer, imgID, endpoin
// FIXME: Try to stream the images?
// FIXME: Launch the getRemoteImage() in goroutines
for _, id := range history {
for i := len(history) - 1; i >= 0; i-- {
id := history[i]
// ensure no two downloads of the same layer happen at the same time
if err := srv.poolAdd("pull", "layer:"+id); err != nil {