title: How to remove a directory in docker?
body: <p>It seems that <code>rm -rf</code> in docker container works only with files.</p>
  
  <pre><code>docker run ubuntu /bin/bash -c 'sudo rm  -rf ./mydir; ls'
  </code></pre>
  
  <p>it lists <code>mydir</code> among directories without printing any errors.</p>
  
  <p>I use ubuntu 14.04 for host and image. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I thought that the bug appeared after I had added another file to the directory, but I was mistaken. Finally, changing storage driver helped to solve the issue.</p>