I need to run a docker container that uses cuda and openGL on ubuntu 24.04. I can’t find the relevant base image.
On 20.04 I used:
nvidia/cudagl:11.2.1-base-ubuntu20.04
They are not actively publishing the cudagl images at the moment, but you can build them yourself - the script and guidelines are up on GitLab: nvidia / container-images / cudagl · GitLab. (Note: you need to change the branch name to ubuntu22.04 in the script here since the nvidia opengl repo does not have an open branch for 24.04 as of this date, but it builds just fine with 22.04)
Do mind that to run these images with the nvidia-ctk successfully you need a graphics driver versions that supports CUDA 12.6.3 (>=560), see the table here.