Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: add SingleContainer when obtaining OCI Spec #8974

Merged
merged 1 commit into from Feb 1, 2024

Conversation

yaoyinnan
Copy link
Member

When creating a cgroup, add a SingleContainer when obtaining the OCI Spec to apply to ctr, podman, etc.

Fixes: #5240

Copy link
Member

@justxuewei justxuewei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

@justxuewei
Copy link
Member

/test

// represents the pause container. In Docker, this is the container.
// On Linux, we derive the group path from this container.
// Get the container associated with the PodSandbox annotation.
// In Kubernetes, this represents the pause container. In Docker, this is the container.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that "In Docker" is not appropriate today. Should we make it more generic?

Copy link
Member Author

@yaoyinnan yaoyinnan Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I changed it to "CRI-compatible runtime like Containerd"

When creating a cgroup, add a SingleContainer when obtaining the OCI Spec to apply to ctr, podman, etc.

Fixes: kata-containers#5240

Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
@yaoyinnan
Copy link
Member Author

/test

Copy link
Contributor

@Apokleos Apokleos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx @yaoyinnan LGTM!

@Apokleos Apokleos merged commit a157fc3 into kata-containers:main Feb 1, 2024
284 of 295 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/tiny Smallest and simplest task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime: can not run containers in parallel
4 participants