mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 13:44:33 +00:00
runtime-rs: process single_container
Process single_container like pod_sandbox when create container but like pod_container when get the size info of memory/cpu from oci/spec. Fixes: #6006 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
parent
5f9c892e48
commit
464d4c94de
@ -38,7 +38,7 @@ impl ShimExecutor {
|
||||
let (container_type, id) = k8s::container_type_with_id(&spec);
|
||||
|
||||
match container_type {
|
||||
ContainerType::PodSandbox => {
|
||||
ContainerType::PodSandbox | ContainerType::SingleContainer => {
|
||||
let address = self.socket_address(&self.args.id)?;
|
||||
let socket = new_listener(&address)?;
|
||||
let child_pid = self.create_shim_process(socket)?;
|
||||
|
Loading…
Reference in New Issue
Block a user