Run docker commands inside Jenkins container

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?

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

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.