From 85f4d20b448efe0f00c5dbdab27c8ea2f1c1f7e6 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Sun, 21 Aug 2016 18:15:18 -0400 Subject: [PATCH] Restored-from-checkpoint containers should have a start time Set the start time similar to a brand new container. Docker-DCO-1.1-Signed-off-by: Phil Estes (github: estesp) --- libcontainer/container_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index 70cbc6359..4a80fc400 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -1049,6 +1049,8 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc }); err != nil { return err } + // create a timestamp indicating when the restored checkpoint was started + c.created = time.Now().UTC() if _, err := c.updateState(r); err != nil { return err }