简体   繁体   中英

Jenkins and docker-compose

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

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/

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM