简体   繁体   中英

Does Jenkins support docker-compose

I read in certain docker plugins, such as docker-slave-plugin , it shows there is support for compose but I do not understand how to implement it.

Has anyone used docker-compose in the Jenkins pipeline and how?

The short answer appears to be no. It does not directly support compose.

I got around this by using the script{} blocks in the Jenkinsfile to manually call docker-compose up which worked fine.

I installed docker and docker-compose on the Jenkins machine and run it with
sh 'docker-compose up' it is not a Jenkins plugin but it works.

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