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

Commit 98d54e5

Browse files
authored
Merge pull request #327 from tonistiigi/double-unmount-1903
[19.03] builder-next: avoid double unmounting mountable Upstream-commit: 93c18c73a349fffd067168ab92056d29a67d76a7 Component: engine
2 parents 3787957 + fd7732e commit 98d54e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • components/engine/builder/builder-next/adapters/snapshot

components/engine/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)