manifest: Close archive once done to umount the device backing the layer
@@ -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 {
@@ -392,6 +392,8 @@ func (s *TagStore) pushV2Image(r *registry.Session, img *image.Image, endpoint *
return err
+ defer arch.Close()
tf, err := s.graph.newTempFile()