mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13945 from dmcgowan/distribution-store-digest-on-pull
Store layer digests on pull
This commit is contained in:
commit
b3b04fd85a
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue