Jenkins and docker-compose

橙三吉。 提交于 2019-12-10 18:47:22

问题


I'm trying to use docker-compose on a jenkins build. But I get :

docker-compose: not found

How I have to do for install docker-compose ? It's a plugin, or I have to modify the docker image of jenkins ?

I use jenkins:1.642.4


回答1:


You need to install docker-compose first. This is the command:

curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

btw, this is the documentation:

https://docs.docker.com/compose/install/



回答2:


Assuming that you are using a shell build step to invoke docker-compose, you will first need to install docker-compose on Jenkins master (or on a slave node) that runs your job. It is a stand-alone binary and detailed instructions to install it can be found here.



来源:https://stackoverflow.com/questions/38726013/jenkins-and-docker-compose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!