
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
The https://github.com/chromedp/docker-headless-shell project provides a Docker image,
https://hub.docker.com/r/chromedp/headless-shell/, containing a pre-built
version of Chrome's headless-shell -- a slimmed down version of Chrome that
is useful for driving, profiling, or testing web pages.
Notably, this Docker image has been created expressly for the Go https://github.com/chromedp/chromedp, which provides a simple and easy to use API for driving browsers compatible with the https://chromedevtools.github.io/devtools-protocol/.
The version of headless-shell contained in this Docker image has been
modified from the original Chromium source tree, to report the same user agent
as Chrome, and has had other minor modifications made to it in order make it
better suited for use in an embedded context.
You can use this Docker image in the usual way:
sh# pull latest version of headless-shell $ docker pull chromedp/headless-shell:latest # pull specific tagged version of headless-shell $ docker pull chromedp/headless-shell:74.0.3717.1 # run $ docker run -d -p 9222:9222 --rm --name headless-shell chromedp/headless-shell # if headless-shell is crashing with a BUS_ADRERR error, pass a larger shm-size: $ docker run -d -p 9222:9222 --rm --name headless-shell --shm-size 2G chromedp/headless-shell
The following contains instructions for building and packaging the
chromedp/headless-shell Docker image manually.
If you'd like to build this image yourself, locally, you will need to build
headless-shell manually from the Chromium source. As such you will need to
setup Chromium's depot_tools, your build environment, and a full checkout of
the Chromium source tree and its related dependencies.
Please see the following for instructions on building Chromium and
headless-shell on Linux:
Before proceeding, please ensure you have fully completed the above, have
manually built headless-shell at least once, and that your Chromium source
tree is up-to-date.
After you are able to successfully build headless-shell directly from the
Chromium source tree, you can simply run docker-build.sh:
sh# build headless-shell $ ./build-headless-shell.sh /path/to/chromium/src 74.0.3717.1 # build docker image (uses $PWD/out/headless-shell-$VER.tar.bz2) $ ./docker-build.sh 74.0.3717.1
以下是 chromedp/headless-shell 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务