Docker Compose Shared Folder

I have successfully mounted a folder from Windows 10 to boot2docker.
Now I want to make docker-compose.yml to mount the folder from boot2docker into the container.

How is that possible?

  • npm not working after export MSYS_NO_PATHCONV on Git Bash
  • How to get docker volumes from newly built image?
  • Can't access docker over the internet
  • Docker containers with multiple log sources
  • grunt serve in docker container max call stack error
  • “Service cron status” command does not give back the status of cron in the ubuntu docker container
  • How to generate a Dockerfile from an image?
  • Permisson error with mongo when running docker
  • How to deploy consul using Docker 1.12 swarm mode
  • Allowing 'anyone' executable permission on /usr/local/bin/docker-compose?
  • Docker compose:
  • Execute mongodb binaries on alpine linux
  • One Solution collect form web for “Docker Compose Shared Folder”

    Suppose you created in Virtual Box a shared folder win_share and mounted it in boot-to-docker like below:

    sudo mount -t vboxsf win_share /shared

    You can mount the directory in the docker-compose.yml as follow:

    - /shared:/path/in/container
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.