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

Store layer digests on pull
This commit is contained in:
Arnaud Porterie 2015-06-15 14:37:30 -07:00
commit b3b04fd85a
1 changed files with 4 additions and 0 deletions

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))