GPU Runners
What’s missing and why it matters
Section titled “What’s missing and why it matters”Docker grants a container GPU access via the --gpus flag (or the equivalent
device-request API). Runaway spawns runner containers itself and doesn’t surface a
way to set that per runner, so you can’t declare “this scale set’s runners get a
GPU” from the UI.
The realistic path
Section titled “The realistic path”Getting GPU access onto runner containers is an agent-host and Docker-daemon exercise:
- Install the NVIDIA Container Toolkit on the agent host. This is what lets Docker expose host GPUs to containers. Follow NVIDIA’s Container Toolkit install guide for your distro.
- Configure the Docker daemon for GPU access. The toolkit registers a
runtime; whether spawned containers get GPUs without an explicit per-container
flag depends on the host’s daemon defaults (for example, setting the NVIDIA
runtime as the default runtime in
daemon.json). If the daemon hands GPUs to containers by default, runner containers on that host inherit them.
Related
Section titled “Related”- Scale sets — what the scale set settings do expose.
- Multi-host — adding a dedicated agent host (e.g. a GPU box).