title: Docker volumes on WSL2 using Docker Desktop
body: <p>I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes :</p>
  <pre class="lang-yaml prettyprint-override"><code>version: &quot;3.7&quot;
  
  services:
      node:
          build: .
          container_name: node
          hostname: node
          volumes: 
              - ./app:/app
          stdin_open: true
  </code></pre>
  <p>the container build and start well, I access it with docker exec nicely but the <code>/app</code> folder inside the container isn't bound to my laptop <code>app</code> folder. However the right path is actually correctly mounted on the running container :</p>
  <p>(here I do pwd on the host to if it matches perfectly with what is mounted on the container)</p>
  <pre><code>➜  app pwd   
  /mnt/c/Users/willi/devspace/these/app
  </code></pre>
  <p>And this is screen of portainer telling me what path are mounted where in the container and everything matches.</p>
  <p><a href="https://i.stack.imgur.com/gaZf1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gaZf1.png" alt="docker volume from portainer" /></a></p>
  <p>The file I create int he app folder on the host are not visible in the app folder of the container and vice-versa. This is weird and I don't know how to debug it.</p>
  <p>Complementary infos:</p>
  <ul>
  <li>Windows 10 Pro 10.0.19041</li>
  <li>Docker for Windows version : 2.3.0.4</li>
  <li><code>docker version</code> output in WSL : 19.03.12</li>
  <li><code>docker-compose version</code> : 1.26.2</li>
  </ul>
  <p>Thanks</p>