Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 93c18c7

Browse files
authored
Merge pull request #327 from tonistiigi/double-unmount-1903
[19.03] builder-next: avoid double unmounting mountable
2 parents 96e086d + cad2cd7 commit 93c18c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

builder/builder-next/adapters/snapshot/snapshot.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
480480
}
481481

482482
m.mounts = nil
483+
defer func() {
484+
m.release = nil
485+
}()
483486
return m.release()
484487
}
485488

0 commit comments

Comments
 (0)