docker中使用GPU硬解码报错libnvcuvid.so is missing的问题

libnvcuvid.so is missing

 

You should check if libnvcuvid is picked up by your host's ldconfig (ldconfig-p | grep cuvid).
With the following command, my container get libnvcuvid mounted from the host:

docker run -it --runtime nvidia -e NVIDIA_DRIVER_CAPABILITIES=video,compute,utility


验证方法:启动docker后,在docker环境中执行下面命令,如果能够找到libnvcuvid.so则说明环境配置正常了。
sh -c 'ldconfig -p | grep cuvid'

参考:

https://github.com/NVIDIA/nvidia-docker/issues/1001

https://stackoverflow.com/questions/48786654/nvidia-driver-libraries-in-nvidia-cuda-image

https://github.com/NVIDIA/nvidia-docker/issues/531#issuecomment-343993909

posted on 2021-06-05 17:46  呆雁  阅读(2080)  评论(0编辑  收藏  举报

导航