title: Running parallel docker builds gives an error message -> Error removing intermediate container <id>: container <id>: driver "windowsfilter" failed
body: <p>Running parallel docker builds sometimes gives an error message:</p>
  
  <pre><code>Error removing intermediate container &lt;id&gt;: container &lt;id&gt;: driver
  "windowsfilter" failed to remove root filesystem: hcsshim::GetComputeSystems:
  Access is denied.
  </code></pre>
  
  <p>Note: <code>&lt;id&gt;</code> is the hash value</p>
  
  <p>For example - say this error message comes at the end of step 3 in docker file. Then, at the end of the each subsequent command in the dockerfile, it re-tries to remove the intermediate container that it failed to remove in the previous step(s) along with removing any container from the current step. Sometimes it may succeed. Either ways - it does not stop the build process. However if the process is not able to remove a container by end of the build process, then this results in a container (inactive) and an image (dangled) resulting in waste of disk space.</p>
  
  <ol>
  <li>What is the reason for this behaviour?</li>
  <li>I know that <code>docker container prune -f</code> and <code>docker image prune -f</code> can be used to clean-up containers and images respectively. But is there any other solution to resolve this error message and inactive container/dangled image during parallel builds? </li>
  <li>Does docker have any limitations with regards to running parallel builds?</li>
  </ol>