title: jenkins docker agent and workspaces
body: <p>Using multibranch pipelines and running a docker agent in one of my stages I found the workspace inside the container is not being updated:</p>
  
  <pre><code>stage('run inside container') {
       agent {
           docker {
               image "my/image"}}
      steps{
         sh 'ls -l'
         ...
  </code></pre>
  
  <p>So I found jenkins is running this docker command:</p>
  
  <pre><code>docker run -t -d -u 1000:1000 -u root -w /home/jenkins/workspace/myworkspace@2
  </code></pre>
  
  <p>its mounting the workspace but with a "2". This is not the main workspace and it looks like its not being updated. How can I have it use my main workspace?</p>