Actually save changes from post-stop sync

After stopping containers, we run updateContainerStatus to sync
our state with runc (pick up exit code, for example). Then we
proceed to not save this to the database, requiring us to grab it
again on the next sync. This should remove the need to read the
exit file more than once.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
Matthew Heon
2018-10-19 13:53:15 -04:00
parent 48914d67ae
commit f714ee4fb1

View File

@ -679,7 +679,7 @@ func (c *Container) stop(timeout uint) error {
}
// Container should clean itself up
return nil
return c.save()
}
// Internal, non-locking function to pause a container