之前做了显卡硬解 ,都没有问题。 不小心重启了DOCKER, 结果启动不起来了
Container embyserver Creating
emby Published ports are discarded when using host network mode
Container embyserver Created
Container embyserver Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running prestart hook #0: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: nvml error: no supported gpus were found: unknown
Exited:0
Compose如下:
services:
emby:
image: w12725/emby:4.8.11.0
container_name: embyserver
飞牛系统建议使用root权限避免权限限制(仅在必要时)
privileged: true
runtime: nvidia
environment:
- GID=0
- UID=0
- PUID=0
- PGID=0
- GIDLIST=100
- NVIDIA_VISIBLE_DEVICES=all # 映射所有可用的NVIDIA显卡
- NVIDIA_DRIVER_CAPABILITIES=all # 启用显卡的所有功能,包括编解码
devices:
- /dev/dri:/dev/dri
user: root
ports:
- 8096:8096
volumes:
飞牛的配置目录建议放在系统默认共享区
- /vol4/1000/Docker/emby/config:/config
媒体目录使用飞牛Web界面中显示的完整路径
- /vol6/1000/VIDEO:/vol6/1000/VIDEO
- /vol4/1000/Docker/smartstrm/strm:/media_strm
restart: always
network_mode: host
飞牛系统用户通常为admin,UID/GID可留空或设为0
删除掉
- NVIDIA_VISIBLE_DEVICES=all # 映射所有可用的NVIDIA显卡
- NVIDIA_DRIVER_CAPABILITIES=all # 启用显卡的所有功能,包括编解码
可以启动 这咋搞~