Docker – Install Docker-Compose on Windows

Reference Docker Compose official installation guide:


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`uname -s`-`uname -m` > /usr/local/bin/docker-compose

$ chmod +x /usr/local/bin/docker-compose


4. Exit root mode

$ exit


5. Test Docker-Compose has been installed correctly

$ Docker-Compose –version

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s