1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Merge pull request #13945 from dmcgowan/distribution-store-digest-on-pull

Store layer digests on pull
Upstream-commit: b3b04fd85a5a44182c872a2765e6732bf9f05a39
Component: engine
This commit is contained in:
Arnaud Porterie
2015-06-15 14:37:30 -07:00

View File

@@ -654,6 +654,10 @@ func (s *TagStore) pullV2Tag(r *registry.Session, out io.Writer, endpoint *regis
return false, err
}
if err := s.graph.SetDigest(d.img.ID, d.digest); err != nil {
return false, err
}
// FIXME: Pool release here for parallel tag pull (ensures any downloads block until fully extracted)
}
out.Write(sf.FormatProgress(stringid.TruncateID(d.img.ID), "Pull complete", nil))