mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-16 08:26:16 +00:00
Merge pull request #5976 from yaoyinnan/5825/fix/cleanup-hypervisor
runtime-rs: cleanup the run dir of hypervisor when shut down
This commit is contained in:
commit
a40fca1f57
@ -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