mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Set container.CreatedAt in Create().
PiperOrigin-RevId: 241056805 Change-Id: I13ea8f5dbfb01ca02a3b0ab887b8c3bdf4d556a6
This commit is contained in:
committed by
Shentubot
parent
e8fef3d873
commit
dcf6613331
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user