title: Docker for Windows unable to mount nfs drive with docker-compose
body: <p>permission denied errors when attempting to mount an nfs drive to a docker container using a docker-compose file.</p>
  
  <p>This error only applies when running Docker for Windows. I am able to successfully mount the drive on an Ubuntu host.</p>
  
  <p>docker-compose file</p>
  
  <pre><code>version: '2'
  
  services:
     builder:
       image: some_image
       ports:
       - "8888:8080"
       volumes:
       - "nfsmountCC:&lt;/container/path&gt;"
  
   volumes:
     nfsmountCC:
       driver: local
       driver_opts:
         type: nfs
         o: addr=&lt;nfs_IP_Address&gt;
         device: ":&lt;/nfs/server/dir/path&gt;"
  </code></pre>
  
  <p>Docker for Windows Produces</p>
  
  <pre><code>ERROR: for test_1  Cannot start service builder: b"error while mounting volume '/var/lib/docker/volumes/test-master_nfsmountCC/_data': error while mounting volume with options: type='nfs' device=':&lt;/nfs/server/dir/path&gt;' o='addr=&lt;nfs_IP_Address&gt;': permission denied"
  </code></pre>