
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!GitHub tag (with filter) https://github.com/toms74209200/docker-firestore-emulator/actions/workflows/build_image.yml/badge.svg](https://github.com/toms74209200/docker-firestore-emulator/actions/workflows/build_image.yml)
Firestore Emulator的Docker镜像,旨在为本地开发和测试提供便捷的Firestore数据库模拟环境,无需连接真实Firebase服务。通过该镜像,开发者可快速搭建本地Firestore测试环境,进行应用开发和功能验证。
/firestore)docker run命令或docker-compose快速部署通过docker run命令启动容器,挂载本地目录作为配置文件目录,并映射8080端口:
bash$ docker run --rm -p8080:8080 -v$(pwd):/firestore motomotomato/firestore-emulator ┌─────────────────────────────────────────────────────────────┐ │ ✔ All emulators ready! It is now safe to connect your app. │ └─────────────────────────────────────────────────────────────┘ ┌───────────┬──────────────┐ │ Emulator │ Host:Port │ ├───────────┼──────────────┤ │ Firestore │ 0.0.0.0:8080 │ └───────────┴──────────────┘
启动后,可通过访问http://localhost:8080验证服务是否正常运行:
bash$ curl http://localhost:8080 OK
需指定项目ID以启用Emulator UI,同时映射4000端口:
bash$ docker run --rm -p8080:8080 -p4000:4000 -v$(pwd):/firestore motomotomato/firestore-emulator "emulators:start" "--only" "firestore" "--project" "demo" ┌─────────────────────────────────────────────────────────────┐ │ ✔ All emulators ready! It is now safe to connect your app. │ │ i View Emulator UI at http://127.0.0.1:4000/ │ └─────────────────────────────────────────────────────────────┘ ┌───────────┬──────────────┬─────────────────────────────────┐ │ Emulator │ Host:Port │ View in Emulator UI │ ├───────────┼──────────────┼─────────────────────────────────┤ │ Firestore │ 0.0.0.0:8080 │ http://127.0.0.1:4000/firestore │ └───────────┴──────────────┴─────────────────────────────────┘
通过docker-compose.yml配置文件部署:
yamlservices: firestore: image: motomotomato/firestore-emulator command: ["emulators:start", "--only", "firestore", "--project", "demo"] ports: - "8080:8080" - "4000:4000" volumes: - .:/firestore
MIT License
https://github.com/toms74209200
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






来自真实用户的反馈,见证轩辕镜像的优质服务