title: Error while creating mount source path when using docker-compose in Windows
body: <p>I am trying to dockerize my React-Flask app by dockerizing each one of them and using <code>docker-compose</code> to put them together.</p>
  
  <p>Here the <code>Dockerfile</code>s for each app look like:</p>
  
  <p><strong>React - Frontend</strong></p>
  
  <pre><code>FROM node:latest
  
  WORKDIR /frontend/
  
  ENV PATH /frontend/node_modules/.bin:$PATH
  
  COPY package.json /frontend/package.json
  COPY . /frontend/
  RUN npm install --silent
  RUN npm install react-scripts@3.0.1 -g --silent
  
  CMD ["npm", "run", "start"]
  </code></pre>
  
  <p><strong>Flask - Backend</strong></p>
  
  <pre><code>#Using ubuntu as our base
  FROM ubuntu:latest
  
  #Install commands in ubuntu, including pymongo for DB handling
  RUN apt-get update -y
  RUN apt-get install -y python-pip python-dev build-essential
  RUN python -m pip install pymongo[srv]
  
  #Unsure of COPY command's purpose, but WORKDIR points to /backend
  COPY . /backend
  WORKDIR /backend/
  
  RUN pip install -r requirements.txt
  
  #Run order for starting up the backend
  ENTRYPOINT ["python"]
  CMD ["app.py"]
  </code></pre>
  
  <p>Each of them works fine when I just use <code>docker build</code> and <code>docker up</code>. I've checked that they work fine when they are built and ran independently. However, when I <code>docker-compose up</code> the <code>docker-compose.yml</code> which looks like</p>
  
  <pre><code># Docker Compose
  version: '3.7'
  
  services:
    frontend:
      container_name: frontend
      build:
        context: frontend
        dockerfile: Dockerfile
      ports:
        - "3000:3000"
      volumes:
        - '.:/frontend'
        - '/frontend/node_modules'
    backend:
      build: ./backend
      ports:
        - "5000:5000"
      volumes:
         - .:/code
  </code></pre>
  
  <p>Gives me the error below</p>
  
  <pre><code>Starting frontend                ... error
  Starting dashboard_backend_1 ...
  
  ERROR: for frontend  Cannot start service sit-frontend: error while creating mount source path '/host_mnt/c/Users/myid/DeskStarting dashboard_backend_1 ... error
  
  ERROR: for dashboard_backend_1  Cannot start service backend: error while creating mount source path '/host_mnt/c/Users/myid/Desktop/dashboard': mkdir /host_mnt/c: file exists
  
  ERROR: for frontend  Cannot start service frontend: error while creating mount source path '/host_mnt/c/Users/myid/Desktop/dashboard': mkdir /host_mnt/c: file exists
  
  ERROR: for backend  Cannot start service backend: error while creating mount source path '/host_mnt/c/Users/myid/Desktop/dashboard': mkdir /host_mnt/c: file exists
  ERROR: Encountered errors while bringing up the project.
  </code></pre>
  
  <p>Did this happen because I am using Windows? What can be the issue? Thanks in advance.</p>