You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Jenkins Docker Cloud Agent与Pipeline Docker Agent选型及API文档咨询

Jenkins Docker Cloud Agent vs Pipeline内置Docker Agent:疑问与场景解析

我想了解为何众多用户选择在Manage Jenkins -> Clouds中配置Docker Cloud Agent,而非使用官方支持的Pipeline内置Docker Agent。

Docker Cloud Agent的步骤与劣势:

  • 需登录Jenkins所在服务器
  • 手动编辑Docker服务文件/lib/systemd/system/docker.service以暴露REST API端口
  • 在Manage Jenkins -> Cloud中完成配置
  • 自行创建Docker镜像
  • 将镜像添加至Docker Agent Template
  • 在Pipeline中引用该模板名称
  • 需基于jenkins/agent或其变体镜像安装所需库或软件

Pipeline内置Docker Agent的优势:

  • 无需登录Jenkins所在服务器
  • 可通过提交至源码的Dockerfile实现更多定制

具体疑问:

  1. 选择Docker Cloud Agent的具体场景是什么?
  2. 暴露Docker REST API端口的官方文档在哪里?

内容的提问来源于stack exchange,提问作者learner

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 03:52:01