
如果你使用 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://badges.gitter.im/jenkinsci/docker.svg](https://gitter.im/jenkinsci/docker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) https://img.shields.io/github/stars/jenkinsci/docker-inbound-agent?label=GitHub%20stars](https://github.com/jenkinsci/docker-inbound-agent) https://img.shields.io/docker/pulls/jenkins/inbound-agent.svg](https://hub.docker.com/r/jenkins/inbound-agent/) https://img.shields.io/github/release/jenkinsci/docker-inbound-agent.svg?label=changelog](https://github.com/jenkinsci/docker-inbound-agent/releases/latest)
:exclamation: Warning! This image used to be published as https://hub.docker.com/r/jenkinsci/jnlp-slave/ and https://hub.docker.com/r/jenkins/jnlp-slave/. These images are deprecated, use https://hub.docker.com/r/jenkins/inbound-agent/.
This is an image for https://jenkins.io agents using TCP or WebSockets to establish inbound connection to the Jenkins master. This agent is powered by the https://github.com/jenkinsci/remoting, which version is being taken from the base https://github.com/jenkinsci/docker-agent/ image.
See https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds for more info.
To run a Docker container
Linux agent:
docker run --init jenkins/inbound-agent -url [***] <secret> <agent name>
Note: --init is necessary for correct subprocesses handling (zombie reaping)
Windows agent:
docker run jenkins/inbound-agent:windowsservercore-1809 -Url [***] -Secret <secret> -Name <agent name>
To run a Docker container with https://github.com/jenkinsci/remoting/blob/master/docs/workDir.md
Linux agent:
docker run --init jenkins/inbound-agent -url [***] -workDir=/home/jenkins/agent <secret> <agent name>
Windows agent:
docker run jenkins/inbound-agent:windowsservercore-1809 -Url [***] -WorkDir=C:/Jenkins/agent -Secret <secret> -Name <agent name>
Optional environment variables:
JENKINS_URL: url for the Jenkins server, can be used as a replacement to -url option, or to set alternate jenkins URLJENKINS_TUNNEL: (HOST:PORT) connect to this agent host and port instead of Jenkins server, assuming this one do route TCP traffic to Jenkins master. Useful when when Jenkins runs behind a load ***, reverse proxy, etc.JENKINS_SECRET: agent secret, if not set as an argumentJENKINS_AGENT_NAME: agent name, if not set as an argumentJENKINS_AGENT_WORKDIR: agent work directory, if not set by optional parameter -workDirJENKINS_WEB_SOCKET: true if the connection should be made via WebSocket rather than TCPAs of version 3.40-1 this image only supports the https://github.com/jenkinsci/remoting/blob/master/docs/protocols.md#jnlp4-connect protocol. Earlier, long-unsupported protocols have been removed. As a result, Jenkins versions prior to 2.32 are no longer supported.
Make sure your ECS container agent is http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html before running. Older versions do not properly handle the entryPoint parameter. See the http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definitions definition for more information.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务