且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在独立的Jenkins中使用docker命令运行jenkins管道作业

更新时间:2023-09-17 14:31:34

是的,您必须在运行docker插件的管道脚本的从机上安装docker.我建议将标签docker添加到已安装docker的从属服务器,然后将管道脚本用作:

Yes you have to install docker on the slave machine which is running that pipeline script of docker plugin. I would suggest adding a label docker to the slave that has docker installed and then use the pipeline script as:

node('docker') {
...
}