Is GPU pass-through possible with docker for Windows?

前端 未结 4 1505
半阙折子戏
半阙折子戏 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 03:08

    Provide a sample !

    ffmpeg -hide_banner -codecs | grep 264
    DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m h264_cuvid ) (encoders: h264_nvenc h264_v4l2m2m nvenc nvenc_h264 )
    

    This would show that the ffmpeg verion can handle: h264_nvenc nvenc nvenc_h264

    ffmpeg -i video.mp4 -vf scale=iw/2:ih/2 -vcodec h264_nvenc "video_2.mp4"
    

    On my WSL2/Insider I get a message that I don't have the correct nvidia driver installed. Because the drive is installed down-below in the windows OS.

    Queries with Microsoft and NVIDIA turned out the hardware acceleration is not passed through and they have no near future plans to do so.

    Windows docker on a widnows os, could be fine. Will check.

提交回复
热议问题