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 <areber@redhat.com>
This commit is contained in:
Adrian Reber 2019-07-05 13:23:09 +00:00
parent 81e722d086
commit f187bab497
No known key found for this signature in database
GPG Key ID: 82C9378ED3C4906A
1 changed files with 1 additions and 0 deletions

View File

@ -636,6 +636,7 @@ func (c *Container) checkpoint(ctx context.Context, options ContainerCheckpointO
}
}
c.state.FinishedTime = time.Now()
return c.save()
}