Merge pull request #6007 from jongwu/single_container

runtime-rs: add Single Container support
This commit is contained in:
Bin Liu
2023-01-11 10:55:50 +08:00
committed by GitHub
4 changed files with 9 additions and 4 deletions

View File

@@ -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)?;