mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
runtime-rs: cleanup the run dir of hypervisor when shut down
Cleanup the run dir of hypervisor when shut down. Fixes: #5825 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
This commit is contained in:
parent
38a6bc570d
commit
e256903af2
@ -248,6 +248,12 @@ impl Sandbox for VirtSandbox {
|
||||
.await
|
||||
.context("delete cgroups")?;
|
||||
|
||||
info!(sl!(), "delete hypervisor");
|
||||
self.hypervisor
|
||||
.cleanup()
|
||||
.await
|
||||
.context("delete hypervisor")?;
|
||||
|
||||
info!(sl!(), "stop monitor");
|
||||
self.monitor.stop().await;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user