title: Gradle under Docker - Could not open cp_proj remapped class cache
body: <p>I've installed Jenkins 2.6 as a docker container on a Windows 2012 Server machine.</p>
  
  <p>I have created a project that checks out a project from git.</p>
  
  <p>I've configured a build step that does a build using gradle wrapper 2.13</p>
  
  <p>The gradle command fails with:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'test'.
  &gt; Could not open cp_proj remapped class cache for 6f7e45oinduki44jplv0c4r9s (/var/jenkins_home/.gradle/caches/2.13/scrip
  ts-remapped/build_4xwqfk0ckitkb3fdwi5uf1f5e/6f7e45oinduki44jplv0c4r9s/cp_proj57408229).
     &gt; java.io.FileNotFoundException: /var/jenkins_home/.gradle/caches/2.13/scripts-remapped/build_4xwqfk0ckitkb3fdwi5uf1f
  5e/6f7e45oinduki44jplv0c4r9s/cp_proj57408229/classes/build_4xwqfk0ckitkb3fdwi5uf1f5e$_run_closure1$_closure3$_closure5.c
  lass (Operation not permitted)
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  </code></pre>
  
  <p>I've tried remoting into the container and running the gradle command manually but get the same error.</p>
  
  <p>I found an article on the internet that recommended deleting the lock files: cache.properties.lock</p>
  
  <p>This has not helped.</p>
  
  <p>I've also tried restarting the container but this has not helped either.</p>