mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
41bfa87b6c
commit
064ff42d6d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue