mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
runtime-rs: make Container::new async
Fixes: #6714 Signed-off-by: Zixuan Tan <tanzixuan.me@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ pub struct Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Container {
|
impl Container {
|
||||||
pub fn new(
|
pub async fn new(
|
||||||
pid: u32,
|
pid: u32,
|
||||||
config: ContainerConfig,
|
config: ContainerConfig,
|
||||||
spec: oci::Spec,
|
spec: oci::Spec,
|
||||||
|
@@ -78,6 +78,7 @@ impl ContainerManager for VirtContainerManager {
|
|||||||
self.agent.clone(),
|
self.agent.clone(),
|
||||||
self.resource_manager.clone(),
|
self.resource_manager.clone(),
|
||||||
)
|
)
|
||||||
|
.await
|
||||||
.context("new container")?;
|
.context("new container")?;
|
||||||
|
|
||||||
// CreateContainer Hooks:
|
// CreateContainer Hooks:
|
||||||
|
Reference in New Issue
Block a user