Skip to content

DeviceCgroupRules for Docker Executors

What does this MR do?

Add the ability to use the the device_cgroup_rules argument in config.toml files and pass it to Docker containers.

Why was this MR needed?

Currently, Gitlab-Runner does not support the device_cgroup_rules argument. Device-cgroup-rules are needed if USB devices are dynamically plugged during the runtime of a container.

What's the best way to test this MR?

Use the device_cgroup_rules argument in a config.toml file and observe with docker inspect that it is applied to a Docker executor.
Example: device_cgroup_rules = ["c 189:* rmw"]

What are the relevant issue numbers?

Closes #3157 (closed)

Edited by Alexander Sinn

Merge request reports