
如果你使用 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/infra-helpers/docker-images-nodejs)%E7%94%9F%E6%88%90%E6%89%98%E7%AE%A1%E5%9C%A8https://hub.docker.com/repository/docker/infrahelpers/node%E7%9A%84Docker%E9%95%9C%E5%83%8F%EF%BC%8C%E6%97%A8%E5%9C%A8%E6%8F%90%E4%BE%9B%E5%9F%BA%E4%BA%8ENodeJS%E5%B7%A5%E5%85%B7%E7%9A%84Linux%E5%8D%B3%E7%94%A8%E5%9E%8B%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B%E7%8E%AF%E5%A2%83%E3%80%82%E7%9B%AE%E5%89%8D%E4%BB%85%E6%94%AF%E6%8C%81Ubuntu 20.04 LTS (Focal Fossal)作为基础镜像,因其广泛使用且是https://github.com/nodesource/distributions%E7%AD%89%E5%B7%A5%E5%85%B7%E7%9A%84%E5%9F%BA%E7%A1%80%E7%8E%AF%E5%A2%83%E3%80%82
每当https://github.com/infra-helpers/docker-images-nodejs%E6%9C%89%E4%BB%A3%E7%A0%81%E6%8F%90%E4%BA%A4%E6%97%B6%EF%BC%8Chttps://hub.docker.com/repository/docker/infrahelpers/node/timeline%E5%B9%B6%E6%8E%A8%E9%80%81%E5%88%B0Docker Hub/Cloud。若需添加对其他开发者有用的组件,可通过https://github.com/infra-helpers/docker-images-nodejs/pulls%E4%BF%AE%E6%94%B9Dockerfile%EF%BC%8C%E5%90%88%E5%B9%B6%E5%90%8EDocker Hub/Cloud将自动重建镜像供所有人使用。
bash$ docker pull infrahelpers/node $ docker run --rm -v ~/tmp/collections:/tmp/collections -it infrahelpers/node bash [build@5..0 dev]$
在容器中执行Newman命令运行集合:
bash[build@5..0 dev]$ newman run /tmp/collections/some-collection.json --reporters cli,csv,json --reporter-csv-export newman/some-report.csv --reporter-json-export newman/some-report.json
可通过以下步骤自定义镜像并推送到Docker Hub/Cloud:
bash$ mkdir -p ~/dev/infra $ cd ~/dev/showcase $ git clone https://github.com/infra-helpers/docker-images-nodejs.git docker-images-nodejs $ cd docker-images-nodejs $ vi ubuntu2004/Dockerfile # 编辑Dockerfile添加自定义内容 $ docker build -t infrahelpers/node ubuntu2004/ # 构建镜像 $ docker run --rm -v ~/tmp/collections:/tmp/collections -it infrahelpers/node bash # 测试镜像 [build@9..d]$ exit # 退出测试容器 $ docker push infrahelpers/node # 推送自定义镜像到Docker Hub
如需以下功能,可在https://github.com/infra-helpers/docker-images-nodejs/issues%E6%8F%90%E4%BA%A4issue%EF%BC%9A
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 infrahelpers/node 相关的常用 Docker 镜像,适用于 Web 开发、API 服务、实时应用 等不同场景: