# Jenkins helm chart - pipeline agent throws 'docker not found' despite having docker

**URL:** <https://community.jenkins.io/t/jenkins-helm-chart-pipeline-agent-throws-docker-not-found-despite-having-docker/14172>\
**Category:** Ask a question\
**Tags:** question, docker, pipeline\
**Created:** [April 12, 2024, 5:57am UTC](https://community.jenkins.io/t/jenkins-helm-chart-pipeline-agent-throws-docker-not-found-despite-having-docker/14172 "2024-04-12T05:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarooolisZi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/karoooliszi/32/7788_2.png) [@KarooolisZi](https://community.jenkins.io/u/KarooolisZi)\
**Post date:** [April 12, 2024, 5:57am UTC](https://community.jenkins.io/t/jenkins-helm-chart-pipeline-agent-throws-docker-not-found-despite-having-docker/14172/1 "2024-04-12T05:57:43Z")

</div>

Hello everyone. I am trying to install jenkins by helm chart into my eks cluster. I have added ‘dind’ sidecar to agent. However, when I am trying to specify agent as

agent {  
docker {  
image ‘php:latest’  
args ‘-v /var/run/docker.sock:/var/run/docker.sock’  
}

it says docker not found. But if I use step with container specified as ‘dind’ and run docker version, pipeline shows correct shell output. Perhaps anyone knows how to overcome this?

If i change default agent image for helm chart to jenkins/jnlp-agent-docker:latest, it throws different error.  
However, this image should have docker or else I have dind in sidecar on same pod

error for this image is:  
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Trying to use php image for simple commands.

---

<div class="post-metadata">

**Author:** ![KarooolisZi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/karoooliszi/32/7788_2.png) [@KarooolisZi](https://community.jenkins.io/u/KarooolisZi)\
**Post date:** [April 13, 2024, 12:49pm UTC](https://community.jenkins.io/t/jenkins-helm-chart-pipeline-agent-throws-docker-not-found-despite-having-docker/14172/2 "2024-04-13T12:49:09Z")

</div>

Strangely commands from dind sidecar work but agent docker says there is an issue
