From f714ee4fb14085c326ee5d56432781a01ffabbb0 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 19 Oct 2018 13:53:15 -0400 Subject: 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 --- libpod/container_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index d928c4aed..867d539be 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -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 -- cgit v1.2.3-54-g00ecf