docker - 以Jenkins Slave的身份运行Docker容器

标签 docker jenkins dockerfile

我的系统上安装了Jenkins,我想将Docker容器作为Jenkins从属服务器运行。

安装docker插件后,我对jenkins的配置部分感到困惑。

在这些设置中我应该输入什么?

最佳答案

You'll need to edit Jenkins system configuration (Jenkins > Manage > System configuration) and add a new Cloud of type "Docker"



这意味着您需要将docker安装在云中(像VirtualBox这样的本地云,或者像Amanzon EC2这样的远程云)。

例如,参见“Using Docker as a Jenkins Cloud Provider”。

关于docker - 以Jenkins Slave的身份运行Docker容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48293662/

相关文章:

Docker:将 Linux korn Shell 添加到现有容器

docker - 在 docker 图像上显式更改 go 路径

docker - GCR-影像缺少两个文件,其余全部,本地影像已完成

git - 使用反向分支选择策略时,如何检索 Jenkins 构建的 git 分支名称?

jenkins - hudson.security.AccessDeniedException2 : anonymous is missing the Read permission

angularjs - 如何在 Dockerfile 中运行 Bower install?

docker - 错误:services.web的撰写文件 './docker-compose.yml'不支持的配置选项: 'dockerfile'

caching - 如何使用 Varnish 缓存发布请求?

ios - Fabric 缺少 DSYM,即使日志说它上传了它们

linux - Dockerfile RUN 与运行图像和使用/bin/bash 提供不同的结果