as a DevOps student I have issue that i couldn't fix
I have this repo https://github.com/lethalfb/insurance
When i run pipeline on my linux machine , everything works great but i would like to run it on my mac m2 laptop and I am getting this error
+ docker build -t lethalfb/insure-me:3.0 --pull --no-cache .
/Users/lethal/.jenkins/workspace/web@2@tmp/durable-fc91d301/script.sh: line 1: docker: command not found
stage part
stage('Docker Image Build'){
echo 'Creating Docker image'
sh "docker build -t $dockerHubUser/$containerName:$tag --pull --no-cache ."
I ve Docker Desktop install and tested with hello-world , works fine chmod 777 /var/run/docker.sock applied
Jenkins installed with all necessary plugins also maven, jdk, ansible etc.
Am I missing something here ?
It took long time otherwise i wouldn't disturb nobody
Thanks for help