title: Error getting container id in jenkins pipeline
body: <p>I have a pipeline script where I'm trying to link several containers together (a liberty container, oracle container and a maven jdk container).</p>
  
  <p>First I create the oracle container:</p>
  
  <pre><code>db = docker.build('oracle', 'docker/oracle').run("-p 49160:22 -p 49161:1521")
  </code></pre>
  
  <p>Then link it to my liberty container which seems to work ok:</p>
  
  <pre><code>wlp = docker.build('liberty', 'docker/liberty').run("-p 9080:9080 --link=${db.id}:oracle")
  </code></pre>
  
  <p>But when I try to link it to the maven one:</p>
  
  <pre><code>mvn.inside('-v $M2_REPO:/m2repo --link=${db.id}:oracle ') {
  </code></pre>
  
  <p>I get the following error in jenkins:</p>
  
  <blockquote>
    <p>Failure: java.io.IOException: Failed to run image 'maven:3.3.9-jdk-8'.
    Error: docker: Error response from daemon: Could not get container for
    ${db.id}. See '/usr/bin/docker-current run --help'.</p>
  </blockquote>
  
  <p>Could this be related to the fact that it's using the <code>inside</code> call rather than <code>run</code> ?</p>