Have a look at this container [1] I put together for accessing GPU instances on AWS via Docker. Runs various compute tasks including multiple containers against a single GPU without issue.
From the looks of your other comments in this tangent it might be exactly what you need or a starting point at least.
It's a base for these BOINC [2] and F@H [3] containers.
Thank you very much! this is really useful information. Aside from cuda, I also want to make EGL/opengl work with docker, hopefully I can find examples for that.
From the looks of your other comments in this tangent it might be exactly what you need or a starting point at least.
It's a base for these BOINC [2] and F@H [3] containers.
1: https://registry.hub.docker.com/u/ozzyjohnson/cuda/
2: https://registry.hub.docker.com/u/ozzyjohnson/boinc-gpu/
3: https://registry.hub.docker.com/u/ozzyjohnson/cuda-fah/