[Docker Runner] Allow access to device (--device docker option)
We want to create runners that can execute code on the GPUs off the server. Docker , it would be nice if this could be set in the
This is the command-line I would like to pass to docker:
--device /dev/nvidia1:/dev/nvidia1 --device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm
config.toml something like:
[runners.docker] image = "gitlabci" privileged = false devices = ["/dev/nvidia1:/dev/nvida1" "/dev/nvidia0:/dev/nvida0", "/dev/nvidiactl:/dev/nvidiactl", "/dev/nvidiactl:/dev/nvidiactl" ] volumes = ["/opt/tools:/opt/tools"]
If I missed this option, I apologize for the noise.