aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2019-07-05 13:23:09 +0000
committerAdrian Reber <areber@redhat.com>2019-07-11 07:35:38 +0200
commitf187bab497d4380d4cd4f13ad77e7f6e8f1e8bdf (patch)
treee0c28fd5bdd7dc5bca09fac5cd34ecc47f547e85 /libpod
parent81e722d08617ee19235bf57de6d86124e6b4574a (diff)
downloadpodman-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>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal_linux.go1
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()
}