summaryrefslogtreecommitdiffhomepage
path: root/runsc/container/container.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-03-29 14:54:17 -0700
committerShentubot <shentubot@google.com>2019-03-29 14:55:22 -0700
commitdcf66133314712b9ba042dbbb289c29d00a2497a (patch)
tree7ff1d97ab1db504873287684c2e01d80f2fc37fc /runsc/container/container.go
parente8fef3d873e4564f0979303d134478b11def8349 (diff)
Set container.CreatedAt in Create().
PiperOrigin-RevId: 241056805 Change-Id: I13ea8f5dbfb01ca02a3b0ab887b8c3bdf4d556a6
Diffstat (limited to 'runsc/container/container.go')
-rw-r--r--runsc/container/container.go1
1 files changed, 1 insertions, 0 deletions
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.