
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Forked from https://github.com/wernight/docker-plex-media-server to include drivers necessary for hardware trancoding on QNAP NAS devices with the Intel i965 Graphics Chipset (TVS-x71).
autoupdate installs latest on startDockerized Plex Media Server: Plex organizes your video, music, and photo collections and streams them to all of your screens (mobile, TV/Chromecast, laptop...) setup for hardware transcoding on QNAP NAS devices using Intel i965 chipsets.
It is recommended to provide two mount points writable by user 797 (that plex random UID inside the container for safety, alternatively use --user flag) and on your QNAP NAS, create a shared folder called 'Plex':
/share/Plex/config: To somewhere to hold your Plex configuration (can be a data-only container). This will include all media listing, posters, collections and playlists you've setup.../share/Multimedia: To one or more of your media files (videos, audio, images...).Note: --privileged flag is necessary for hardware-transcoding to work
QNAP NAS Example using a shared folder called "Plex":
$ mkdir /share/Plex/config $ chown 797:797 -R /share/Plex $ $ chown -R 797:administrators /dev/dri # necessary for hardware-transcoding on QNAP NAS (your mileage may vary) $ chmod -R 775 /dev/dri # necessary for hardware-transcoding on QNAP NAS (your mileage may vary) $ $ docker pull ikipzdu6up3gra/qnap-intel-docker-plex:autoupdate $ docker run -d --restart=always -v /share/Plex/config:/config -v /share/Multimedia:/media --privileged --device=/dev/dri --net=host -p 32400:32400 ikipzdu6up3gra/qnap-intel-docker-plex:autoupdate
Once done, wait a few seconds and open http://localhost:32400/web in your browser.
The flag --net=host is only required for the first run, so that your can login locally without password (without SSH proxy) and see the "Server" tab in the web UI (see troubleshooting section below). Alternatively you can provide X_PLEX_TOKEN, or PLEX_LOGIN and PLEX_PASSWORD (see below). If you want Avahi broadcast to work then keep --net=host even after being logged in, but this will be somewhat less secure.
To find your X-Plex-Token a helper script has been provided, just run:
$ docker run --rm -it ikipzdu6up3gra/qnap-intel-docker-plex retrieve-plex-token
The --restart=always is optional, it'll for example allow auto-start on boot.
Plex Media Server does not support auto-upgrade from the UI on Linux. If/once it does, we'd be more than happy to support it.
There are two ways to keep up to date:
ikipzdu6up3gra/qnap-intel-docker-plex:autoupdate (for users who want the really latest) – Installs the latest public or Plex Pass release each time the container starts. It has a few differences compared to what is described here:
Runs as root initially so it can install Plex (required), after that it runs as plex user.
Supports PlexPass: Premium users get to download newer versions shortly before they get public. For that either specify PLEX_LOGIN and PLEX_PASSWORD or preferably X_PLEX_TOKEN:
$ docker run -d --restart=always -v /share/Plex/config:/config -v /share/Multimedia:/media --privileged --device=/dev/dri --net=host -p 32400:32400 -e X_PLEX_TOKEN='<my_x_plex_token>' ikipzdu6up3gra/qnap-intel-docker-plex:autoupdate
Alternatively you can specify your Plex login/password (only be used to retrieve the latest official download URL and cleared after that) like:
$ docker run -d --restart=always -v /share/Plex/config:/config -v /share/Multimedia:/media --privileged --device=/dev/dri --net=host -p 32400:32400 -e PLEX_LOGIN='<my_plex_login>' -e PLEX_PASSWORD='<my_plex_password>' ikipzdu6up3gra/qnap-intel-docker-plex:autoupdate
You can change some settings by setting environement variables:
X_PLEX_TOKEN is your X-Plex-Token (a safer alternative to PLEX_LOGIN and PLEX_PASSWORD) used to register your server without having to access your Plex Server settings via the web UI, see Finding your account token / X-Plex-Token.PLEX_LOGIN your Plex username or e-mail (as alternative to X_PLEX_TOKEN).PLEX_PASSWORD your Plex password (as alternative to X_PLEX_TOKEN).PLEX_EXTERNAL_PORT is the external port number (accessible from the internet) to reach your Plex server (default is 32400).PLEX_MEDIA_SERVER_MAX_STACK_SIZE ulimit stack size (default: 3000).PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS the number of plugins that can run at the same time (default: 6).Additional setting environement variables for the :autoupdate tagged image:
X_PLEX_TOKEN or PLEX_LOGIN and PLEX_PASSWORD are also used to retrieve latest PlexPass version (if you have access).PLEX_SKIP_UPDATE can be set to true to skip completely the install of latest Plex.PLEX_FORCE_DOWNLOAD_URL can be set to a URL to force downloading and installing a given Plex Linux package for Debian 64-bit.您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务