From f187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Fri, 5 Jul 2019 13:23:09 +0000 Subject: Correctly set FinishedTime for checkpointed container During 'podman container checkpoint' the finished time was not set. This resulted in a strange container status after checkpointing: Exited (0) 292 years ago During checkpointing FinishedTime is now set to time.now(). Signed-off-by: Adrian Reber --- libpod/container_internal_linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod/container_internal_linux.go') diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index 686a595de..aa477611f 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -636,6 +636,7 @@ func (c *Container) checkpoint(ctx context.Context, options ContainerCheckpointO } } + c.state.FinishedTime = time.Now() return c.save() } -- cgit v1.2.3-54-g00ecf