How to make docker-compose volumes work on Hyper-V?

I’m trying to run an application that uses volumes, but I get an error saying it couldn’t find package.json.

10 error path /usr/src/app/package.json
11 error code ENOENT
12 error errno -2
13 error syscall open
14 error enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'
14 error enoent This is most likely not a problem with npm itself
14 error enoent and is related to npm not being able to find a file.
15 verbose exit [ -2, true ]

What do I have to do so it find the files?

  • Docker “/bin/bash” could not be invoked when mounting an NFS file with -v on openstack
  • Meaning of “$PWD”:/path/to/directory"
  • Error installing node.js on google compute engine docker image
  • how do I build a docker image without existing from a docker file
  • wso2CEP on docker - supports JMS (activemq) and other clients
  • Docker: Alias command name to run another sibling docker container
  • Currently using:

    • Windows 10 Pro
    • Docker 1.11.1-beta10 (build 2446)

    Note: The same application works on docker for linux.

  • Integrate Grunt in docker-compose?
  • ERROR : HTTP request response time
  • Running and configuring mqtt broker with docker composer
  • Cant delete Docker image
  • Artifactory bad gateway error
  • Spring can't see inside a docker container
  • One Solution collect form web for “How to make docker-compose volumes work on Hyper-V?”

    You have to allow docker to access your drivers. Go to:

    • Settings…
    • Manage shared drivers…
    • Select the driver where you want to create the volume
    • Enter your credentials

    enable drivers

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.