title: Docker "permission denied" in container
body: <p>I am trying to run a docker image by</p>
  
  <pre><code>docker run  -it -v $PWD/examples:/home/user/examples image 
  </code></pre>
  
  <p>which should make <code>$PWD/examples</code> in the host accessible in the container. However when I <code>ls</code> in the container, it keeps giving me</p>
  
  <pre><code>ls: cannot access 'examples': Permission denied
  </code></pre>
  
  <p>I have tried the answers for similar questions, the <code>z/Z</code> option and <code>chcon -Rt svirt_sandbox_file_t /host/path/</code> and <code>run --privileged</code>, but neither of them have any effect in my case.
  In fact, the <code>z</code> option appears to work for the first time <code>ls</code>, but when I issue <code>ls</code> the second time it is denied again.</p>