title: Jenkins docker.inside() and shared volumes
body: <p>In a Jenkins job I would share some folders when I run one container inside another.</p>
  <p>There are three systems running</p>
  <ul>
  <li>Docker host</li>
  <li>MySql container</li>
  <li>Alpine container (inside)</li>
  </ul>
  <p>I can use the &quot;-v&quot; option to share a folder between the host and the MySql container.
  But how can I share it between Docker and Alpine, or betwwen Mysql and Alpine ?
  Is it possible to use the &quot;--volumes-from&quot; to share folder between the two containers ?</p>
  <pre><code>pipeline {
      agent none
      stages {
          stage('Run Tests') {                    
              parallel {
                  stage(&quot;Dbms&quot;) { 
                      agent { label 'docker' }
                    steps {
                      script {
                          docker.image(&quot;mysql:5&quot;).withRun('-e &quot;MYSQL_ROOT_PASSWORD=my-secret-pw&quot; -v /home/jenkins:/home/jenkins:rw,z') { c -&gt;
                              docker.image(&quot;maven:3.6-ibmjava-8-alpine&quot;).inside(&quot;--link ${c.id}:db&quot;) {
                                  sh 'echo &quot;Hello from Alpine&quot;'
                              }
                          }
                      }
                    }
                  }
              }
          }
      }
   }
   
   
  </code></pre>