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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user