title: jenkins pipeline DOCKER_HOST
body: <p>I need to run a <strong>docker-container inside my pipeline</strong>.<br>
  My problem is, there is <strong>no docker.sock</strong> available inside the Jenkins-container. And actual no chance to get it.</p>
  
  <p>But I found some jobs using docker with this Option:</p>
  
  <blockquote>
    <p>"Inject environment variables to the build process" -> "Properties
    Content"</p>
  </blockquote>
  
  <p>And following configured:</p>
  
  <pre><code>DOCKER_HOST=tcp://&lt;ip&gt;:&lt;port&gt;
  DOCKER_CERT_PATH=/var/jenkins_home/certs
  </code></pre>
  
  <p>In my understanding, this is equivalent to the docker.sock and useable as plugin, isnt it?</p>
  
  <p>But how can i use it inside a (multi-)pipeline project?
  I've tried using this Block inside my Note:</p>
  
  <pre><code>environment {
      DOCKER_HOST         = 'tcp://&lt;ip&gt;:&lt;port&gt;'
      DOCKER_CERT_PATH    = '/var/jenkins_home/certs'
  }
  </code></pre>
  
  <p>But got same issue: <strong>"docker: not found"</strong>
  I might have a logical fallacy. Hope someone could help.</p>
  
  <p>Otherwise is it possible to create a jenkins-slave including a docker.sock?</p>