Merge pull request #36160 from kolyshkin/layer-not-retained

daemon.cleanupContainer: nullify container RWLayer upon release
This commit is contained in:
Tibor Vass 2018-01-31 15:13:00 -08:00 committed by GitHub
commit 53a58da551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,7 @@ func (daemon *Daemon) cleanupContainer(container *container.Container, forceRemo
container.SetRemovalError(e)
return e
}
container.RWLayer = nil
}
if err := system.EnsureRemoveAll(container.Root); err != nil {