sincecutoff.com
← all changes

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

Check the installed version and the source before using it. Entry JSON

Report a problem with this card