Docker – Install Docker-Compose on Windows

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

$ exit

 

5. Test Docker-Compose has been installed correctly

$ Docker-Compose –version

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s