docker-call-close-archive-in-push-v2-image

pushV2Image() calls TarLayer() which returns an archive. One needs to
Close() the archive once done otherwise it will leave mounted devices
if devicemapper graph driver is being used.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> 
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Vivek Goyal 2015-02-11 11:30:46 -05:00
parent 41bfa87b6c
commit 064ff42d6d
1 changed files with 2 additions and 0 deletions

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