Ensure state is saved to disk after we kill the ghost

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: e36d89b0f9c8ba5b071374310ca632f6b2fdb7a1
Component: engine
This commit is contained in:
Michael Crosby
2014-04-01 07:12:50 +00:00
parent d0b2920666
commit 8169d6ecd6
+3
View File
@@ -197,6 +197,9 @@ func (runtime *Runtime) Register(container *Container) error {
if err := container.Unmount(); err != nil {
utils.Debugf("ghost unmount error %s", err)
}
if err := container.ToDisk(); err != nil {
utils.Debugf("saving ghost state to disk %s", err)
}
}
info := runtime.execDriver.Info(container.ID)