title: Connect to nodes on my network via ssh from Docker Container (defined in Jenkinsfile)
body: <p>I'm trying to build a jenkins pipeline which automates some Chef InSpec test cases for infrastructure and compliance auditing. I'm using a groovy function to generate the stages with the actual test invocations. So far the basic setup works.</p>
  <pre><code>stage('test') {
      agent {
          docker {
              image 'chef/inspec:latest'
              reuseNode true
          }
      }
      steps {
          script {
              parallel inspecTestStages(hosts, profiles)
          }
      }
  }
  </code></pre>
  <p>Now the problem is connecting to nodes in my network. When I use <code>inspec exec $profile -t ssh://$host</code> (or <code>inspec exec profiles/infra-audit -t ssh://pi@prometheus</code> with vars replaced) the connection is not established.</p>
  <p>I'm sure this is because the inspec container does not know any ssh keys. But I don't want to extend the image an add keys because these keys are private and sensible information which should not be of an image.</p>
  <p>Does anyone know how to enable the inspec container to ssh into the nodes on my network? The host machine running this container has all ssh key information necessary. How can I mount these ssh information into the inspec container which I defined in my Jenkinsfile?</p>