Skip to content

Conversation

@lifubang
Copy link
Member

For some rootless container, runc has no access to cgroup, But the container is still running. So we should return the ErrNotRunning and ErrCgroupNotExist error seperatlly.

Follow up of #4395, please see #4395 (comment)

@@ -699,7 +699,7 @@ func setupPersonality(config *configs.Config) error {
// signalAllProcesses returns ErrNotRunning when the cgroup does not exist.
Copy link
Member

Choose a reason for hiding this comment

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

This comment needs to be updated too

@lifubang lifubang force-pushed the feat-add-ErrCgroupNotExist branch from a89babc to 7055e85 Compare September 23, 2024 23:27
For some rootless container, runc has no access to cgroup,
But the container is still running. So we should return the
`ErrNotRunning` and `ErrCgroupNotExist` error seperatlly.

Signed-off-by: lifubang <lifubang@acmcoder.com>
@lifubang lifubang force-pushed the feat-add-ErrCgroupNotExist branch from 7055e85 to 10c951e Compare September 23, 2024 23:27
Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

lgtm

@kolyshkin kolyshkin merged commit 47756ed into opencontainers:main Sep 24, 2024
@lifubang lifubang deleted the feat-add-ErrCgroupNotExist branch October 15, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants