Merge pull request #10596 from rhvgoyal/manifest-close-archive

manifest: Close archive once done to umount the device backing the layer
This commit is contained in:
Jessie Frazelle
2015-02-11 09:05:26 -08:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -73,6 +73,8 @@ func (s *TagStore) newManifest(localName, remoteName, tag string) ([]byte, error
return nil, err
}
defer archive.Close()
tarSum, err := tarsum.NewTarSum(archive, true, tarsum.Version1)
if err != nil {
return nil, err
+2
View File
@@ -392,6 +392,8 @@ func (s *TagStore) pushV2Image(r *registry.Session, img *image.Image, endpoint *
if err != nil {
return err
}
defer arch.Close()
tf, err := s.graph.newTempFile()
if err != nil {
return err