Merge pull request #995 from estesp/starttime-for-criu-container
Restored-from-checkpoint containers should have a start time
This commit is contained in:
commit
b4ffe2974d
|
@ -1049,6 +1049,8 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// create a timestamp indicating when the restored checkpoint was started
|
||||||
|
c.created = time.Now().UTC()
|
||||||
if _, err := c.updateState(r); err != nil {
|
if _, err := c.updateState(r); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue