Does Jenkins Pipeline Plug-in support Docker Compose?

前端 未结 4 2146
深忆病人
深忆病人 2020-12-13 13:20

I\'m looking for a way to run Docker-enabled build consisting of multiple containers in Jenkins 2.0.

Are there any plans for native support of Docker Compose

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 13:53

    Here are the files to run a jenkins container that runs docker inside:

    docker run \
      -p 8080:8080 \
      -v /var/run/docker.sock:/var/run/docker.sock \
      --name jenkins \
      getintodevops/jenkins-withdocker:lts
    

    reference: https://getintodevops.com/blog/the-simple-way-to-run-docker-in-docker-for-ci

提交回复
热议问题