I have deployed jenkins via helm to my cluster and added a freestyle project ( not pipeline ). It correctly boots up slaves & connects to the master and starts the build, however i'm getting the error:
ERROR: Cannot run program "docker" (in directory "/home/jenkins/workspace/MrSecurity.Proxy"): error=2, No such file or directory
java.io.IOException: Cannot run program "docker" (in directory "/home/jenkins/workspace/MrSecurity.Proxy"): error=2, No such file or directory
When I created the jenkins deploy I passed in:
volumes:
- type: HostPath
secretName: /var/run/docker.sock
mountPath: /var/run/docker.sock
And in the jenkins UI i got the following settings.
Could someone please help me on how to solve this. I figured it cant run docker because its docker-in-docker, however I can't find a solution to it, seems like I have tried everything..