Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Can multiple containers run in one sandbox? #390

Closed
bekars opened this issue Jun 13, 2018 · 3 comments
Closed

Can multiple containers run in one sandbox? #390

bekars opened this issue Jun 13, 2018 · 3 comments

Comments

@bekars
Copy link

bekars commented Jun 13, 2018

Description of problem

In our project, we want run multiple same containers, they owned by one tenant, in one sandbox.

  1. Is this scope implemented or not in kata project ?
  2. Can it support Docker or Kubernetes?

I don't find any documents to config such environment. I appreciate for your answer.

@sboeuf
Copy link

sboeuf commented Jun 13, 2018

Hi @bekars, running multiple containers from one tenant inside the same sandbox is the natural way to handle things in Kubernetes. And because Kata Containers does support Kubernetes if used with CRI-O or CRI-containerd, you can simply run several containers in the same pod, they will end up running inside the same virtual machine in case of Kata.

About Docker only, there is no such concept as sandbox/pod, the container is the highest level of granularity and that's the reason why this case cannot apply to Docker.

@WeiZhang555
Copy link
Member

WeiZhang555 commented Jun 14, 2018

Kata containers uses annotation from runtime spec to specify many containers in single POD, as docker has no way to pass the annotation down to kata-runtime level, there's no way to compose a POD in Docker scenario.

But @jshachm from Kata and Huawei team is trying very hard to upstream a patch to docker for supporting passing the annotation: moby/moby#37262 , I believe in near future, you will be able to create a POD with docker after backporting a very small docker patch.

Cheers :-)

@egernst
Copy link
Member

egernst commented Jun 3, 2019

@bekars - This is stale at this point, and I believe we've answered your query. Let me know if you have further questions.

@egernst egernst closed this as completed Jun 3, 2019
lifupan pushed a commit to lifupan/kata-runtime that referenced this issue Aug 5, 2020
…_option

kata 2.0: delete use_vsock option and proxy abstraction
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants