mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user