Is GPU pass-through possible with docker for Windows?

前端 未结 4 1508
半阙折子戏
半阙折子戏 2021-02-04 02:02

I am trying to run an application inside a docker container in Windows 10.

But I am not able to get the GPU working inside docker.

I read that it needs \"GPU Pa

4条回答
  •  迷失自我
    2021-02-04 02:52

    Now that docker on Windows 10 can access WSL2 (as of Windows 10 version 2004) it has cleared the way for GPU support of Linux docker containers on Windows 10.

    According to this official blog, MS "will start previewing GPU compute support for WSL in Windows 10 Insider builds within the next few months": https://devblogs.microsoft.com/commandline/the-windows-subsystem-for-linux-build-2020-summary/#wsl-gpu

    I expect Docker GPU support to follow shortly after.

    Update:

    GPU pass-through in Windows is now possible under very specific circumstances, including:

    • that the container must be Windows as well
    • process level isolation only, no hyper-v
    • it only works with DirectX based applications
    • for Machine Learning, this means only Microsoft ML will work.

    Refer to: https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/gpu-acceleration

    Update 2:

    GPU pass through from Linux docker on Windows host is now possible on the latest Windows Insider build, refer to:

    https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2

    This will flow through to mainstream Windows probably in the next major update.

提交回复
热议问题