Getting Docker for nvidia graphic card recognition on Mac

When I am in the container, I run

 lspci | grep -i nvidia

and nothing is displayed.

When i run. / deviceQuery from samples provided by NVIDIA, I get

 no CUDA-capable device is detected 

I know that I have an nvidia driver on my mac. I just can't figure out how to get my docker container to figure this out.

+4
source share
3 answers

In OS X, docker is a container running inside a separate virtual vm box that does not display the main GPU.

+4
source

First you need to make the graphics card available in the virtual virtual machine. I'm not sure how to do this, but it looks like this might help:

https://www.virtualbox.org/manual/ch04.html#guestadd-video

, , .

+1

I have not tried this myself, but this guy says that he can run his own X11 applications on Mac using the beta docker client, Kinematic along with socat , XQuartz and QGIS , and it seems like he implies that the problems with the NVidia drivers were thus eliminated. It is worth a try!

0
source

All Articles