浏览代码

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

[19.03] builder-next: avoid double unmounting mountable
Sebastiaan van Stijn 5 年之前
父节点
当前提交
93c18c73a3
共有 1 个文件被更改,包括 3 次插入0 次删除
  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()
 }