Merge pull request #327 from tonistiigi/double-unmount-1903
[19.03] builder-next: avoid double unmounting mountable
This commit is contained in:
commit
93c18c73a3
1 changed files with 3 additions and 0 deletions
|
@ -480,6 +480,9 @@ func (m *mountable) Release() error {
|
|||
}
|
||||
|
||||
m.mounts = nil
|
||||
defer func() {
|
||||
m.release = nil
|
||||
}()
|
||||
return m.release()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue