title: jenkins pipeline : docker not found
body: <p>i wanted to create a docker image with jenkins but docker not found</p>
  <p>how can i add jenkins to docker groupe on windows ?
  i tried to add docker plugin and didn't work</p>
  <p>this is my pipeline</p>
  <pre><code>pipeline {
      agent any
      options { buildDiscarder(logRotator(numToKeepStr:'5'))}
      environment {DOCKERHUB_CREDENTIALS = credentials('tfkben-dockerhub')}
      stages {
              stage('build'){  steps {  sh 'docker build -t tfkben/ben:latest .' }  }
              stage('Login'){  steps {  sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin ' }}
              stage('Push'){  steps {  sh 'docker push tfkben/ben:latest'}   }                                 
           }                           
              post { always { sh 'docker logout' }}
  }
  </code></pre>
  <p>my Dockerfile :</p>
  <pre><code>FROM python:3.11-rc-bullseye
  
  WORKDIR /app
  
  COPY requirements.txt requirements.txt
  RUN pip3 install -r requirements.txt
  
  COPY . .
  
  CMD [ &quot;python3&quot;, &quot;manage.py&quot;, &quot;runserver&quot;, &quot;0.0.0.0:8000&quot;]
  </code></pre>
  <p>and this is the error message :</p>
  <ul>
  <li>docker build -t tfkben/ben:latest .
  /var/jenkins_home/workspace/dockerhub-auth_master@tmp/durable-d7adec4b/script.sh: 1: docker: not found</li>
  </ul>