From e36d89b0f9c8ba5b071374310ca632f6b2fdb7a1 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 26 Mar 2014 06:59:41 +0000 Subject: [PATCH] Ensure state is saved to disk after we kill the ghost Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- runtime/runtime.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/runtime.go b/runtime/runtime.go index 1c99a02811..d5c1a96ada 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -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)