Docker Community Forums

Share and learn in the Docker community.

Run docker commands inside Jenkins container

docker

(Sureshsala) #1

I have a host with multiple dockers app in it.

  1. jenkins docker
  2. consul docker and
  3. datadog docker

I want to create jobs in jenkins and run docker commands for eg
$ docker run container id with environment variables

I have created jenkins job with execute shell and ran docker command, got docker not found.

How can I build jobs to run on host not on container?


(Sreenivas Makam) #2

Check if this link would help your usecase(https://sreeninet.wordpress.com/2016/01/23/ci-cd-with-docker-jenkins-and-tutum/)


(Wheelsense) #3

Hi Suresh,

Were you able to run docker commands inside jenkins container.I am unable to run.If it is working for you.Please send me the steps.It would be helpful to me.