title: How to get docker-compose to work in docker generated jenkins pipeline on windows?
body: <p>I am running this code to start up a dockerized jenkins. This works.</p>
  
  <pre><code>docker run -p 81:8080 -p 50000:50000 --name myjenkins --privileged -v %cd%/jenkins:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkins/jenkins
  </code></pre>
  
  <p>I have a successful checkout scm  using bitbucket, webhooks and connecting to my local jenkins over firewall everytime I push.
  Previous Jenkinsfile example works:</p>
  
  <pre><code>pipeline {
    agent any
  
    stages {
      stage('Build') {
        steps {
          echo 'Building...'
        }
      }
    }
  }
  </code></pre>
  
  <p>I have then added into my Jenkinsfile </p>
  
  <pre><code>pipeline {
    agent any
    stages {
        stage('Test') {
          steps {
            echo 'Testing...'
          }
        }
        stage('docker-compose') {
            steps {
               sh "./dockcompose.sh"
            }
        }
    }
    post {
       always {
          sh "./dockcompose-down.sh"
       }
    }
  }
  </code></pre>
  
  <p>I have a local docker-compose.yml file which I have thoroughly tested locally and works. 
  In the pipeline error I get:</p>
  
  <pre><code>docker-compose: not found
  </code></pre>
  
  <p>Any suggestions why it can't find docker-compose and how to get it to recognise the method?
  thanks</p>