Skip to content

docs: update README examples for cgroups v3 - #407

Open
wangyu-geek wants to merge 1 commit into
containerd:mainfrom
wangyu-geek:docs/readme-cgroups-v3
Open

wangyu-geek wants to merge 1 commit into
containerd:mainfrom
wangyu-geek:docs/readme-cgroups-v3

Conversation

@wangyu-geek

Copy link
Copy Markdown

Summary

  • Update the cgroup v1 examples to use the current New and Load signatures, including WithHierarchy(cgroup1.Systemd) for systemd slices.
  • Correct the OCI CPU type and the package reference for IgnoreNotExist.
  • Update the v3 imports and point the NewSystemd example’s -1 PID reference to the current upstream implementation.

Signed-off-by: wangyu-geek <wy15075652703@gmail.com>
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.

1 participant