From dcf66133314712b9ba042dbbb289c29d00a2497a Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Fri, 29 Mar 2019 14:54:17 -0700 Subject: Set container.CreatedAt in Create(). PiperOrigin-RevId: 241056805 Change-Id: I13ea8f5dbfb01ca02a3b0ab887b8c3bdf4d556a6 --- runsc/container/container.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runsc/container/container.go b/runsc/container/container.go index fdcf8d7b7..687b89935 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -267,6 +267,7 @@ func Create(id string, spec *specs.Spec, conf *boot.Config, bundleDir, consoleSo BundleDir: bundleDir, Root: containerRoot, Status: Creating, + CreatedAt: time.Now(), Owner: os.Getenv("USER"), } // The Cleanup object cleans up partially created containers when an error occurs. -- cgit v1.2.3