<p>I am running kubernetes cluster on AWS using Kops. We deploy Jenkins on it and we want to run docker, kubectl commands inside jenkins pods and want output to show of kubernetes clusters nodes, pods, and containers. We are able to achieve this via dockerfile or docker compose. We tried to mount docker socket as volume but didn't workout.</p>

Dharmendra Jha
<p>The regular jenkins image does not ship with the docker command.</p>
<p>Check out this jenkins image, it contains the docker and docker-compose commands:
<a href="https://hub.docker.com/r/trion/jenkins-docker-client" rel="nofollow noreferrer">https://hub.docker.com/r/trion/jenkins-docker-client</a></p>
