<p>I am trying to build docker Image using jenkins x and I have created kubernetes cluster using minikube. got an error <code>/var/jenkins_home/workspace/sarika-ps_go-k8s_master@tmp/durable-6564436e/script.sh: docker: not found</code>. I have installed the docker plugin on jenkins x. Please help me. 
Thanks</p>

Sarika Jamdade
<p>what kind of project are you trying to build? If you try to <a href="https://jenkins-x.io/developing/import/" rel="nofollow noreferrer">import</a> your code you'll hopefully find your project gets setup correctly.</p>

<p>basically Jenkins X uses build pods to run the pipelines which already have all the software tools required for pipelines (docker, skaffold, kubectl etc) inside the build pod which is defined as a docker image. </p>

<p>Try to reuse one of the existing build pods - e.g. using <code>jenkins-maven</code> as the build agent:</p>

<pre><code> pipeline {
  agent {
    label "jenkins-maven"
  }
  stages {
    stage('release') {
      steps {
        container('maven') {
          sh "docker build -t foo:bar ."
...
</code></pre>

<p>or you could try <a href="https://jenkins-x.io/getting-started/create-custom-builder/" rel="nofollow noreferrer">create a custom build pod</a>. </p>
