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?

  • How to use docker remote api to create a container using another container's network namespace
  • docker - how do you disable auto-restart on a container?
  • Docker container link not in env or /etc/hosts
  • Get TeamCity running on Docker
  • How to correctly specify named volumes when trying to backup files in docker
  • Standalone kubelet persistent disk mount on Google Cloud instance
  • Currently using:

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

    Note: The same application works on docker for linux.

  • Is it possible to use vagrant + aws provider + docker provider?
  • with Docker
  • Would Docker or Vagrant be help in creating test machine for our enterprise product
  • Jhipster-Logstash does not start correctly
  • Why is virtualbox running so slowly under docker?
  • Run nodejs application on subpath with haproxy
  • 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.