From fbc5e49a60c49b28e9cde012eab5c8549d76b0c5 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 11 May 2017 11:35:31 +0200 Subject: [PATCH] oci: save container's finished time Signed-off-by: Antonio Murdaca --- oci/oci.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oci/oci.go b/oci/oci.go index 913f1211..2e4d1644 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -501,6 +501,8 @@ func (r *Runtime) StopContainer(c *Container, timeout int64) error { } } + c.state.Finished = time.Now() + return nil }