群晖下使用docker 运行emby容器,不使用root权限,使用当前账户权限去运行容器内进程,emby无法加载显卡驱动,显示为如下界面

Xnip2020-01-15_15-29-56.jpg (74.53 KB, 下载次数: 0)
当使用root权限,或,chmod 777 /dev/dri 或 chown -R id:gr /dev/dri 对显卡驱动改变权限都可以让容器内emby正常加载显卡驱动
emby官方的解决方案是 GIDLIST
You can get the video and/or render GIDs using the following command:
getent group video | cut -d: -f3
getent group render | cut -d: -f3
但是群晖DSM 是没有 getent 命令的,并且 /dev/dri 目录的所有者和组都是 root:root,但是 env里修改GIDLIST为 0 也无法加载显卡驱动
究竟应该如何在不使用root权限(UID !=0,GID !=0)的情况下,让docker emby加载显卡驱动
docker run -d \
--device /dev/dri:/dev/dri \ # To mount all render nodes for VAAPI/NVDEC/NVENC
--env UID=1000 \ # The UID to run emby as (default: 2)
--env GID=100 \ # The GID to run emby as (default 2)
--env GIDLIST=100 \ # A comma-separated list of additional GIDs to run emby as (default: 2)
emby/embyserver:latest
评论
VAAPI
Note: This applies to amd64 only.
Emby now comes with a VAAPI-enabled ffmpeg out of the box on Intel platforms with HD graphics. For VAAPI to work, emby needs access to a render node, usually /dev/dri/renderD128. On most modern distros, this render node belongs to the video group, others belong to the render group. All you need to do is mount the render node and add the video group GID to the GIDLIST variable as described above.
You can get the video and/or render GIDs using the following command:
getent group video | cut -d: -f3
getent group render | cut -d: -f3
评论
为什么不原生安装emby的package而是要绕路用docker
评论
没有docker版好用,emby的nfo文件和图片,权限不是当前用户权限,其他软件很难管理。并且docker版更干净更可靠,能够对容器资源进行限制和管理,这个都是直接安装在群晖上所无法实现的
评论
我记得群晖docker可以设置更高的执行权限,不知道是不是你要的
评论
这个我也试过了,没有用
评论
DS918,切换了 ROOT 也没有 /dev/dri 喃…
评论
楼主,我试了很多次,就算chmod之后,docker下的emby还是不行。没办法硬解。--device 这些都加了,还是不行。
直接用群辉的插件,就一切正常。。搞不明白了。
电路 电子 维修 求创维42c08RD电路图 评论 电视的图纸很少见 评论 电视的图纸很少见 评论 创维的图纸你要说 版号,不然无能为力 评论 板号5800-p42ALM-0050 168P-P42CLM-01 电路 电子 维修 我现在把定影部分拆出来了。想换下滚,因为卡纸。但是我发现灯管挡住了。拆不了。不会拆。论坛里的高手拆解过吗? 评论 认真看,认真瞧。果然有收
·中文新闻 阿曼达·斯蒂尔(Amanda Platell):哦,迈琳(Myleene),我对你的
·中文新闻 迪拜的秘密性交易 - 和加油的英国男人 - 暴露了:在一次特别调