Nvidia-docker: Installing nvidia-docker on macOS with linux container. linux container can access the host nvidia card or not?

Created on 8 Jun 2018  路  2Comments  路  Source: NVIDIA/nvidia-docker

Most helpful comment

However, the only way to make this is use Nvidia VirtualGPU vGPU

Not quite, you can do a regular PCIe passthrough with Tesla GPUs.
But xhyve/HyperKit doesn't support PCIe passthrough.

I think it's just easier if you use the docker CLI on Mac, but connect to a remote docker daemon running on a Linux machine with a GPU.

All 2 comments

I thing that Docker for MacOS work over a virtual machine:

With Docker for Mac, you have a new, native virtualization system running (HyperKit) which takes the place of the VirtualBox system https://docs.docker.com/docker-for-mac/install/#what-to-know-before-you-install

then you need some method for _PCI_ _passthrough_ the GPU card from host OS to VM OS client. However, the only way to make this is use _Nvidia VirtualGPU_ vGPU
https://www.nvidia.com/en-us/design-visualization/technologies/virtual-gpu/ and that your GPU support this technology; an CPU Intel that have virtualization capabilities.

Nvidia-Docker work for passthrough on linux containers
Nvidia-vGPU work for passthrough on Virtual Machines over linux host

For now the HyperKit work over a personalized hypervisor based on xhyve and in its roadmap NO show future work in this.

Maybe Another approach:

  • install linux side by side on mac hardware
  • search someone project for paravirtualization on mac with docker

However, the only way to make this is use Nvidia VirtualGPU vGPU

Not quite, you can do a regular PCIe passthrough with Tesla GPUs.
But xhyve/HyperKit doesn't support PCIe passthrough.

I think it's just easier if you use the docker CLI on Mac, but connect to a remote docker daemon running on a Linux machine with a GPU.

Was this page helpful?
0 / 5 - 0 ratings