title: How to install docker properly in Jenkins?
body: <p>I'm running <code>jenkins/jenkins</code> image from dockerhub, I've installed the docker plugin, still not able to find docker inside a pipeline, what am i missing</p>
  <pre><code>pipeline {
    agent any
  
    stages {
      stage('Running') {
        agent {
          docker {
            image 'node:14-alpine'
          }
        }
  
  
        steps {
          echo 'preparing the flow'
        }
      }
  
      stage('Build') {
        agent {
          docker {
            image 'node:14-alpine'
          }
        }
  
        steps {
          sh &quot;&quot;&quot;
            npm install
          &quot;&quot;&quot;
        }
      }
    }
  }
  
  </code></pre>
  <pre><code>/var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-5bf3a454/script.sh: 1: /var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-5bf3a454/script.sh: docker: not found
  [Pipeline] isUnix
  [Pipeline] sh
  + docker inspect -f . hub.docker.com/node:14-alpine
  /var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-dea9bcb7/script.sh: 1: /var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-dea9bcb7/script.sh: docker: not found
  [Pipeline] isUnix
  [Pipeline] sh
  + docker pull hub.docker.com/node:14-alpine
  /var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-b25ea3a8/script.sh: 1: /var/jenkins_home/workspace/multibranch_PR-1@2@tmp/durable-b25ea3a8/script.sh: docker: not found
  </code></pre>