Does Jenkins support docker-compose

…衆ロ難τιáo~ 提交于 2019-12-11 04:36:01

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/48995717/does-jenkins-support-docker-compose

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