mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
rustjail: Fix created time of container
Got wrong created time of container after an exec this commit will fix this problem. Fixes: #2994 Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
parent
a7a47bd7d4
commit
e7856ff10c
@ -995,8 +995,6 @@ impl BaseContainer for LinuxContainer {
|
|||||||
|
|
||||||
info!(logger, "entered namespaces!");
|
info!(logger, "entered namespaces!");
|
||||||
|
|
||||||
self.created = SystemTime::now();
|
|
||||||
|
|
||||||
if p.init {
|
if p.init {
|
||||||
let spec = self.config.spec.as_mut().unwrap();
|
let spec = self.config.spec.as_mut().unwrap();
|
||||||
update_namespaces(&self.logger, spec, p.pid)?;
|
update_namespaces(&self.logger, spec, p.pid)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user