diff --git a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/container.rs b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/container.rs index 48ba7dd418..cb7548feaa 100644 --- a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/container.rs +++ b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/container.rs @@ -46,7 +46,7 @@ pub struct Container { } impl Container { - pub fn new( + pub async fn new( pid: u32, config: ContainerConfig, spec: oci::Spec, diff --git a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/manager.rs b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/manager.rs index f6a6553e97..c532ccaca7 100644 --- a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/manager.rs +++ b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/manager.rs @@ -78,6 +78,7 @@ impl ContainerManager for VirtContainerManager { self.agent.clone(), self.resource_manager.clone(), ) + .await .context("new container")?; // CreateContainer Hooks: