如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/instrumentisto/geckodriver-docker-image/actions/workflows/ci.yml/badge.svg?branch=main "CI"](https://github.com/instrumentisto/geckodriver-docker-image/actions?query=workflow%3ACI+branch%3Amain)
https://hub.docker.com/r/instrumentisto/geckodriver | https://github.com/orgs/instrumentisto/packages/container/package/geckodriver | Quay.io
https://github.com/instrumentisto/geckodriver-docker-image/blob/main/CHANGELOG.md
Dockerfile 链接https://github.com/mozilla/geckodriver是一个代理,用于让W3C WebDriver兼容客户端与基于Gecko的浏览器交互。
该程序提供https://w3c.github.io/webdriver/#protocol中描述的HTTP API,以与Gecko浏览器(如Firefox)通信。它通过充当本地端和远程端之间的代理,将调用转换为Marionette远程协议。
此镜像捆绑了https://github.com/mozilla/geckodriver和Firefox,适用于运行无头测试。
firefox-source-docs.mozilla.org/testing/geckodriver
bashdocker run -d -p 4444:4444 instrumentisto/geckodriver
之后你可以连接到监听在 127.0.0.1:4444 的geckodriver。仅支持无头模式。
如果要在本地服务器上运行测试,考虑使用 --network=host 选项运行镜像。
考虑增加共享内存大小(--shm-size 2g 选项),否则可能会遇到意外的Firefox崩溃。
作为简单容器启动后,通过 127.0.0.1 访问工作正常。但在Docker Compose环境中,由于其网络模式,可能会有问题。默认情况下,services 通过其名称访问,而启动的https://github.com/mozilla/geckodriver并不知道该名称。因此,应显式指定允许的主机(通过 --host 参数,或 --allow-hosts 参数用于多个条目):
dockerservices: stuff: image: whatever environment: WEBDRIVER_URL: "http://webdriver:4444" # ^^^^^^^^^ 使用服务名称 webdriver: image: instrumentisto/geckodriver command: "--host=webdriver --binary=/opt/firefox/firefox --log=debug" # ^^^^^^^^^^^^^^^^ 允许geckodriver使用服务名称
否则,https://github.com/mozilla/geckodriver将不接受任何传入请求。
debian最新Firefox和https://github.com/mozilla/geckodriver版本在最新稳定Debian版本上的最新标签。
debian-<name>最新Firefox和https://github.com/mozilla/geckodriver版本在最新 <name> Debian版本上的最新标签。
<X.Y>/<X.Y.Z>特定 X.Y(或 X.Y.Z)Firefox版本与最新https://github.com/mozilla/geckodriver版本的最新标签。
<X.Y>-driver<A.B.C>/<X.Y.Z>-driver<A.B.C>特定 X.Y(或 X.Y.Z)Firefox版本与特定 A.B.C https://github.com/mozilla/geckodriver版本的最新标签。
<X.Y>-driver<A.B.C>-r<N>/<X.Y.Z>-driver<A.B.C>-r<N>特定 X.Y(或 X.Y.Z)Firefox版本与特定 A.B.C https://github.com/mozilla/geckodriver版本的特定 N 镜像修订标签。
构建后永不更新。
Firefox和https://github.com/mozilla/geckodriver采用Mozilla Public License 2.0许可证。
与所有Docker镜像一样,这些镜像可能还包含其他软件,可能采用其他许可证(如基础发行版中的Bash等,以及包含的主要软件的任何直接或间接依赖项)。
对于任何预构建镜像的使用,镜像用户有责任确保对该镜像的任何使用符合其中包含的所有软件的相关许可证。
生成 instrumentisto/geckodriver Docker镜像的https://github.com/instrumentisto/geckodriver-docker-image采用https://github.com/instrumentisto/geckodriver-docker-image/blob/main/LICENSE.md许可证。
我们无法注意到https://hub.docker.com(或其他容器仓库)中的评论,因此不要使用它们来报告问题或提问。
如果你对此镜像有任何问题或疑问,请通过https://github.com/instrumentisto/geckodriver-docker-image/issues与我们联系。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




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