Refer to Docker Compose Official official Installation Guide: https://docs.docker.com/compose/install/
You can't actually install Docker Compose directly on Windows so far, so this article is about how to use Docker Compose on Windows.
Prerequisites : Docker machine is already installed.
Solution : Install Docker-compose in the Boot2docker virtual machine.
1. SSH to VM:
$ docker-machine SSH
2. Get Root User rights:
$ sudo-i
3. Run the following two commands (note: Do not use the commands provided in the "Install as Container" section of the official guide. The pro test is invalid! )
$ curl-l https://github.com/docker/compose/releases/download/1.6.0/docker-compose-' uname-s '-' uname- M ' >/usr/local/bin/docker-compose
$ chmod +x/usr/local/bin/docker-compose
4. Return to Docker user rights:
$ exit
5. Test Docker-compose Installation Success:
$ docker-compose--version
Windows System Installation Docker Compose steps