Merge pull request #12117 from adrianreber/2021-10-27-set-checkpointed-false-after-restore

Set Checkpointed state to false after restore
This commit is contained in:
OpenShift Merge Robot 2021-10-28 18:06:25 +00:00 committed by GitHub
commit d2147bada6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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