title: Jenkinsfile bind exposed ports from one container to localhost on another linked container
body: <p>I have a service that exposes certain ports. I want the container of this service linked to a Jenkins slave container and have the same ports available on localhost of the Jenkins slave container.</p>
  
  <pre class="lang-groovy prettyprint-override"><code>docker.image('some-service').withRun() { l -&gt;
    docker.image('jenkins-slave').inside("--link ${l.id}:my-service") {
      echo "Exposed ports from some-service are available on localhost on jenkins-slave"
    }
  }
  </code></pre>
  
  <p>How do I do this? Thanks</p>