title: How can I solve 403:Forbidden whilst using a docker container?
body: <p>I'm new to Docker and currently following this tutorial:</p>
  
  <blockquote>
    <p><a href="https://www.youtube.com/watch?v=YFl2mCHdv24" rel="noreferrer">Learn Docker in 12 minutes</a></p>
  </blockquote>
  
  <p>I created the necessary files and I made it up to display "Hello World!" on localhost:80.</p>
  
  <p>Beyond that point, I tried to mount the container using the direct reference to my folder so I can update the index.php file to mimic the development evironment, and then I come with this error:</p>
  
  <p><a href="https://i.stack.imgur.com/tU6KU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tU6KU.png" alt="Forbidden"></a></p>
  
  <p>All I did is change the way the image is ran so I can update the content of the index.php file and see the changes reflect in the webpage when I hit F5.</p>
  
  <p><em>Currently using Docker for Windows on Windows 10 Pro</em></p>
  
  <p><em>Docker for Windows is running</em></p>
  
  <p>I followed every steps scrupulously so I don't get myself fooled and it didn't work for me it seems.</p>
  
  <p>To answer Mornor's question, here is the result for <strong><code>docker ps</code></strong></p>
  
  <p><a href="https://i.stack.imgur.com/PBqzO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PBqzO.png" alt="docker ps"></a></p>
  
  <p>And here for <strong><code>docker logs [container-name]</code></strong></p>
  
  <p><a href="https://i.stack.imgur.com/vBa1E.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vBa1E.png" alt="docker logs ae"></a></p>
  
  <p>And since I now better understand what happens under the hood, how do I go to solve my problem illustrated in the log?</p>
  
  <p>Here is my <strong><code>Dockfile</code></strong></p>
  
  <p><a href="https://i.stack.imgur.com/PfqBL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PfqBL.png" alt="Dockerfile"></a></p>
  
  <p>And the command I executed to run my image:</p>
  
  <pre><code>docker run -p 80:80 -v /wmi/tutorials/docker/src/:/var/www/html/ hello-world
  </code></pre>
  
  <p>And so you see that the file exists:</p>
  
  <p><a href="https://i.stack.imgur.com/hWfUV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hWfUV.png" alt="path to index.php"></a></p>