1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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)
This commit is contained in:
Michael Crosby 2014-03-26 06:59:41 +00:00
parent 283daced0c
commit e36d89b0f9

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)