diff options
author | Adrian Reber <areber@redhat.com> | 2019-07-05 13:23:09 +0000 |
---|---|---|
committer | Adrian Reber <areber@redhat.com> | 2019-07-11 07:35:38 +0200 |
commit | f187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf (patch) | |
tree | e0c28fd5bdd7dc5bca09fac5cd34ecc47f547e85 | |
parent | 81e722d08617ee19235bf57de6d86124e6b4574a (diff) | |
download | podman-f187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf.tar.gz podman-f187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf.tar.bz2 podman-f187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf.zip |
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>
-rw-r--r-- | libpod/container_internal_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
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() } |