Set container.CreatedAt in Create().

PiperOrigin-RevId: 241056805
Change-Id: I13ea8f5dbfb01ca02a3b0ab887b8c3bdf4d556a6
This commit is contained in:
Nicolas Lacasse 2019-03-29 14:54:17 -07:00 committed by Shentubot
parent e8fef3d873
commit dcf6613331
1 changed files with 1 additions and 0 deletions

View File

@ -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.