nerdctl run and create add --device-cgroup-rule
Introduced 2026-10-30 · score 0.97
HOW TO USE IT
When creating or running a container with a device cgroup rule, pass `--device-cgroup-rule` with a rule in `TYPE MAJOR:MINOR ACCESS` form.
nerdctl run --device-cgroup-rule='c 189:* rmw' <image>nerdctl create --device-cgroup-rule='c 189:* rmw' <image>WHY THIS HELPS
Configure device cgroup rules when creating or running a container.
REQUIREMENTS AND LIMITATIONS
- Version: v2.4.2
- --device-cgroup-rule: Adds a rule to the cgroup allowed devices list; format `TYPE MAJOR:MINOR ACCESS`.
FIRST-PARTY EVIDENCE
- https://github.com/containerd/nerdctl/releases/tag/v2.4.2
- https://github.com/containerd/nerdctl/blob/v2.4.2/docs/command-reference.md
Check the installed version and the source before using it. Entry JSON