
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
这是一个轻量级、可自定义的MagicMirror² Docker镜像,专为树莓派和ARM兼容设备设计。您可以通过卷挂载轻松扩展MagicMirror的配置、样式和模块。
config.js、custom.css和模块目录在运行容器前,请先安装Docker:
树莓派(Raspbian/Ubuntu)
bash# 更新系统 sudo apt-get update && sudo apt-get upgrade -y # 安装Docker curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh # 将用户加入docker组(可选) sudo usermod -aG docker $USER # 启动并设置开机自启 sudo systemctl start docker && sudo systemctl enable docker # 验证安装 docker --version
Ubuntu(桌面/服务器)
bash# 更新系统 sudo apt-get update && sudo apt-get upgrade -y # 安装依赖 sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y # 添加GPG密钥 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # 添加仓库 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" # 安装Docker sudo apt-get update && sudo apt-get install docker-ce -y # 验证安装 docker --version
Windows(Docker Desktop)
docker --versionmacOS(Docker Desktop)
docker --version创建如下目录结构:
my-magic-mirror-container # 自定义名称 ├── config/ # 存放config.js │ └── config.js ├── custom-css/ # 存放custom.css │ └── custom.css ├── modules/ # 存放自定义模块 │ └── MMM-ExampleModule/
在根目录创建docker-compose.yml:
yamlservices: magicmirror: image: docker.xuanyuan.run/mumblebaj/magicmirror:latest container_name: magicmirror ports: - "8080:8080" volumes: - ./config:/home/pi/MagicMirror/config - ./custom-css:/home/pi/MagicMirror/css/custom - ./modules:/home/pi/MagicMirror/custom-modules restart: unless-stopped
bashdocker compose up -d
打开浏览器访问:http://localhost:8080(确保config.js中ipWhitelist为空数组)
bashdocker compose down -v
本项目基于MIT许可证,详情见LICENSE文件。
欢迎提交PR和问题,随时fork并改进!
textMIT License Copyright (c) 2025 [mumblebaj] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务