Docker Community Forums

Share and learn in the Docker community.

Run docker commands inside Jenkins container


(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(

(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.