Registry / utility / containerd-cgroups

containerd-cgroups

JSON →
library1.1.0gogounverified

A Go library for managing Linux control groups (cgroups) used by containerd.

go get github.com/containerd/cgroups
INSTALL
IMPORT
SIG · CONTAINERD-CGROUPS
C
containerd-cgroups
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cgroups
✓ github.com/containerd/cgroups

Creates a new cgroup using the v1 hierarchy.

package main import ( "fmt" "github.com/containerd/cgroups" ) func main() { control, err := cgroups.New(cgroups.V1, cgroups.StaticPath("/mygroup")) if err != nil { panic(err) } defer control.Delete() fmt.Println("Cgroup created") }
Debug
Known issues
gotchaCgroup v2 support may require specific kernel versions
fix
Ensure your Linux kernel supports cgroup v2 and use appropriate options.
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
containerd-cgroups — go get containerd-cgroups · libregistry