Merge pull request #2995 from Tim-Zhang/fix-container-created-time

rustjail: Fix created time of container
This commit is contained in:
Tim Zhang
2021-11-10 19:44:04 +08:00
committed by GitHub

View File

@@ -995,8 +995,6 @@ impl BaseContainer for LinuxContainer {
info!(logger, "entered namespaces!");
self.created = SystemTime::now();
if p.init {
let spec = self.config.spec.as_mut().unwrap();
update_namespaces(&self.logger, spec, p.pid)?;