如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
![Join the chat at []]([]
: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 Jenkins agents using TCP or WebSockets to establish inbound connection to the Jenkins controller. This agent is powered by the https://github.com/jenkinsci/remoting, which version is being taken from the base https://github.com/jenkinsci/docker-agents/README_agent.md image.
See Using Agents for more info.
Manage Jenkins option in main menuNodes item in System Configuration
!https://github.com/jenkinsci/docker-agents/raw/3355.v388858a_47b_33-21/images/screen-4.pngNew Node option in side menuLaunch method is Launch agent by connecting it to the controller
!https://github.com/jenkinsci/docker-agents/raw/3355.v388858a_47b_33-21/images/screen-1.pngSave button and the agent1 will be registered, but offline for the time being. Click on it.
!https://github.com/jenkinsci/docker-agents/raw/3355.v388858a_47b_33-21/images/screen-2.pngJENKINS_SECRET as environment variable.
!https://github.com/jenkinsci/docker-agents/raw/3355.v388858a_47b_33-21/images/screen-3.pngTo run a Docker container
Note
Remember to replace the<secret>and<agent name>for secret and agent name, which can be you can get(and set) from https://github.com/jenkinsci/docker-agents/blob/3355.v388858a_47b_33-21/README_inbound-agent.md#Setup-the-agent-on-Jenkins.
Your agent node should be possible to connect to Jenkins controller with agent port (not Jenkins server's port like 80, 443, 8080), which can be set inManage Jenkins>Security>Agent. Default port is 50000.
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-ltsc2019 -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-ltsc2019 -Url [***] -WorkDir=C:/Jenkins/agent -Secret <secret> -Name <agent name>
Optional environment variables:
JENKINS_JAVA_BIN: Path to Java executable to use instead of the default in PATH or obtained from JAVA_HOMEJENKINS_JAVA_OPTS : Java Options to use for the remoting process, otherwise obtained from JAVA_OPTS, Warning :exclamation: For more information on Windows usage, please see the Windows Jenkins Java Opts https://github.com/jenkinsci/docker-agents/blob/3355.v388858a_47b_33-21/README_inbound-agent.md#windows-jenkins-java-opts.JENKINS_AGENT_FILE : Jenkins agent jar file location, /usr/share/jenkins/agent.jar will be used if this is not setREMOTING_OPTS : Generic way to pass additional CLI options to agent.jar (see -help)Deprecated environment variables (prefer setting REMOTING_OPTS)
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 controller. Useful when when Jenkins runs behind a load ***, reverse proxy, etc.JENKINS_SECRET: (use only if not set as an argument) the secret as shown on the controller after creating the agentJENKINS_AGENT_NAME: (use only if not set as an argument) the name of the agent, it should match the name you specified when creating the agent on the controllerJENKINS_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 TCPJENKINS_DIRECT_CONNECTION: (HOST:PORT) Connect directly to this TCP agent port, skipping the HTTP(S) connection parameter download.JENKINS_INSTANCE_IDENTITY: The base64 encoded InstanceIdentity byte array of the Jenkins controller. When this is set, the agent skips connecting to an HTTP(S) port for connection info.JENKINS_PROTOCOLS: Specify the remoting protocols to attempt when JENKINS_INSTANCE_IDENTITY is provided.Example
The processing of the JENKINS_JAVA_OPTS environment variable or -JenkinsJavaOpts command line parameter follow the command parsing semantics of Powershell. This means that if a parameter contains any characters that are part of an expression in Powershell, it will need to be surrounded by quotes. For example:
-XX:+PrintCommandLineFlags --show-version
This would need to be escaped with quotes like this:
"-XX:+PrintCommandLineFlags" --show-version
Or another example: -Dsome.property=some value --show-version
This would need to be escaped like this:
"-Dsome.property='some value'" --show-version
As 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 updated before running. Older versions do not properly handle the entryPoint parameter. See the entryPoint definition for more information.
以下是 jenkins/inbound-agent 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务