Reference Docker Compose official installation guide: https://docs.docker.com/compose/install/
Actually Docker-Compose is not supported by Windows. What this post will talk about is how to use Docker-Compose on Windows.
Pre-requisite: Docker Machine has been installed.
Solution: Install Docker-Compose inside linux Virtual Machine.
1. SSH to VM:
$ docker-machine ssh
2.Run as root user
$ sudo -i
3.Run the following two commands (warning: Don’t use the command in “Install as a container” section from the official guide. It doesn’t work!)
$ curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
4. Exit root mode
5. Test Docker-Compose has been installed correctly
$ Docker-Compose –version