Skip to content

Add --cgroup-manager, deprecate --systemd-cgroup - #5570

Merged
kolyshkin merged 1 commit into
opencontainers:mainfrom
kolyshkin:cgroup-manager
Oct 28, 2026
Merged

kolyshkin merged 1 commit into
opencontainers:mainfrom
kolyshkin:cgroup-manager

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Add a new global option:

--cgroup-manager cgroupfs|systemd

with cgroupfs as default.

This is compatible with the option of the same name in crun and podman. As for dockerd, it has native.cgroupdriver=systemd|cgroupfs.

This is a step to have

  • --cgroup-manager disabled (which is already supported by podman and crun)
  • crun tests running in runc CI.

Also, --systemd-cgroup is deprecated in favor of --cgroup-manager=systemd. It is still supported and there are no plans to remove it.

The integration tests are switched to the new option, and a few tests are added for the new option and the deprecated one.

Add a new --cgroup-manager global option, accepting either "cgroupfs"
(the default) or "systemd". It is compatible with the option of the
same name crun has (except crun also has "disabled").

This helps tools which run either runc or crun, for example, crun's test
suite, which can now be run against runc.

Deprecate --systemd-cgroup in favor of --cgroup-manager=systemd. It is
still supported (and there are no plans to remove it), but conflicts with
--cgroup-manager set to anything other than systemd.

Switch the integration tests to use the new option, and add a few tests
for the new and the deprecated option.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

@kolyshkin kolyshkin left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok i think we can merge this one

@kolyshkin
kolyshkin enabled auto-merge October 28, 2026 06:01
@kolyshkin
kolyshkin added this pull request to the merge queue Oct 28, 2026
Merged via the queue into opencontainers:main with commit 3b9ee72 Oct 28, 2026
96 checks passed
@kolyshkin kolyshkin added this to the 1.6.0-rc.2 milestone Oct 29, 2026
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.

2 participants