A. On Windows side
- Make sure Windows version is at least Professional. Or follow this to upgrade. Note Windows upgrade is a piece of shit. Only hope is restart OS when you think upgrade stucks.
- https://docs.docker.com/docker-for-windows/install/ download Docker edge, install it with Hyper-V. Do not use VirtualBox, it does not work with bash.
- start
Docker.exe
B. On Bash side
- install brew on linux http://linuxbrew.sh/
brew install docker
echo -n "export DOCKER_HOST=tcp://0.0.0.0:2375" >> ~/.zshrc
Docker engine is still running on Windows side. Just bash's Docker client connects to Windows' Docker engine. Therefore, you are still counting on luck that Docker with Hyper-V would behave the same as Docker on real Linux.
See empty folder in shared volumn with Docker-Compose.
Solution:
$ sudo mkdir /c
$ sudo mount --bind /mnt/c /c
$ cd /c/path/to/project
$ docker-compose ...