From dcbf5cae128b2bed895899551b48fab0105ea69e Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Wed, 27 Oct 2021 13:38:43 +0000 Subject: Set Checkpointed state to false after restore A restored container still had the state set to 'Checkpointed: true' which seems wrong if it running again. [NO NEW TESTS NEEDED] Signed-off-by: Adrian Reber --- libpod/container_internal_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index d3151f7e0..2fd519990 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -1546,6 +1546,7 @@ func (c *Container) restore(ctx context.Context, options ContainerCheckpointOpti logrus.Debugf("Restored container %s", c.ID()) c.state.State = define.ContainerStateRunning + c.state.Checkpointed = false if !options.Keep { // Delete all checkpoint related files. At this point, in theory, all files -- cgit v1.2.3-54-g00ecf