summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-05 16:47:08 +0200
committerGitHub <noreply@github.com>2019-08-05 16:47:08 +0200
commit1c6d7eb9549f3a4a513dd529d4b6df532cf19118 (patch)
tree72b24f638479767b3f838ca472493aea9cfda039 /libpod
parenta15432afe64e0c45b8baf57128f55f18de0ae63a (diff)
parent82b586349c81e071f5e024ecf35ab005ea326df6 (diff)
downloadpodman-1c6d7eb9549f3a4a513dd529d4b6df532cf19118.tar.gz
podman-1c6d7eb9549f3a4a513dd529d4b6df532cf19118.tar.bz2
podman-1c6d7eb9549f3a4a513dd529d4b6df532cf19118.zip
Merge pull request #3698 from adrianreber/StartedTime
restore: correctly set StartedTime
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_ctr.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index 47d49f6aa..61a871b28 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -52,6 +52,8 @@ func (r *Runtime) RestoreContainer(ctx context.Context, rSpec *spec.Spec, config
if err != nil {
return nil, errors.Wrapf(err, "error initializing container variables")
}
+ // For an imported checkpoint no one has ever set the StartedTime. Set it now.
+ ctr.state.StartedTime = time.Now()
return r.setupContainer(ctx, ctr)
}