Browse code

Merge pull request #327 from tonistiigi/double-unmount-1903

[19.03] builder-next: avoid double unmounting mountable

Sebastiaan van Stijn authored on 2019/08/17 03:30:09
Showing 1 changed files
... ...
@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
480 480
 	}
481 481
 
482 482
 	m.mounts = nil
483
+	defer func() {
484
+		m.release = nil
485
+	}()
483 486
 	return m.release()
484 487
 }
485 488