Skip to content

Docker executor: Add configuration to include docker's `--group-add`

Ben Brown requested to merge benjamb/gitlab-runner:benbrown/group-add into main

What does this MR do?

Adds the GroupAdd configuration to the docker executor, which directly maps to docker's --group-add flag.

Why was this MR needed?

When running gitlab-runner unprivileged, but with a device (say /dev/kvm), the user within the container will not have the required permissions to access the device.

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports