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?

  • writing liberty logs directly to graylog
  • Enabling Docker Remote API on Ubuntu 14.04 with daemon startup
  • Creating clock skew with docker
  • Docker exec runs command on host machine instead of container
  • Understanding “VOLUME” instruction in DockerFile
  • Restcomm RVD is not running from docker container
  • Currently using:

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

    Note: The same application works on docker for linux.

  • Access Docker daemon Remote api on Docker for Mac
  • Cannot find module for a node js app running in a docker compose environment
  • docker-maven-plugin: How to define which tests are run for which image?
  • Angular2 cannot find module: './class' within docker
  • Kafka setup with docker-compose
  • Docker compose run migrations on django web application + postgres db
  • 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.