Explorar o código

Merge pull request #39754 from tonistiigi/double-unmount

builder-next: avoid double unmounting mountable
Sebastiaan van Stijn %!s(int64=6) %!d(string=hai) anos
pai
achega
c9aee96bfd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      builder/builder-next/adapters/snapshot/snapshot.go

+ 3 - 0
builder/builder-next/adapters/snapshot/snapshot.go

@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
 	}
 
 	m.mounts = nil
+	defer func() {
+		m.release = nil
+	}()
 	return m.release()
 }