Document
How to install docker-compose on Windows

How to install docker-compose on Windows

update 2021 : docker - compose has been rewrite in Go , and is now a docker commanddocker compose As such , there is no long the need to " install "

Related articles

BOIFUN ZS-GX1S Security Camera User Manual The Best Free P2P VPNs for Safe & Anonymous Torrenting Nextcloud Flow makes it easy to automate workflows and actions Public IP Address: Everything You Need to Know 724VPN Affiliate Marketing

update 2021 : docker – compose has been rewrite in Go , and is now a docker commanddocker compose

As such , there is no long the need to ” install ” it .
See docker compose.


Update 7th ofnovember 2018:

On desktop systems like Docker for Mac and Windows, Docker Compose is
included as part ofthose desktop installs.

Accordingly to thedocumentation, Docker for Windows and Docker Toolbox already include Compose along withother Docker apps, so most Windows users do not need to install Compose separately.


Update 2017: this is now officially managed (for Windows 10 supporting Hyper-V) with”Docker for Windows”.
See ” Install Docker for Windows ” .
It does have a chocolatey installation package for Docker, so:

choco install docker-for-windows 
# or
choco upgrade docker-for-windows 

Again, this requires a 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later) and Microsoft Hyper-V.

For other Windows, you still need VirtualBox + Boot2Docker.


Update: docker compose 1.5 (Nov 2015) should make it officially available for Windows (since RC2).

Pull requests like PR 2230 and PR 2143 helped.
commit 13d5efc detail the official Build process for the Windows binary .


Original answer (Q1-Q3 2015).

Warning: the original answer (“docker - compose in a container”) below seems to have a bug, according to Ed Morley (edmorley).

There appear to be caching issues withthe “docker – compose in a container” method (See issue #6: “Changes to docker – compose.yml and Dockerfile not being detected”)

Ed is recommends recommend :

As such for now, running the Python docker - compose package inside boot2docker seems to be the most reliable solution for Windows user ( having spend many hour try to battle withthe alternative ) .

To install docker – compose from PyPI, run this from inside boot2docker:

docker@boot2docker:~$ 
tce-load -wi python && curl https://bootstrap.pypa.io/get-pip.py | \
  sudo python - && sudo pip install -U docker - compose

To save having to run the above every time the boot2docker VM is restarted (since changes don’t persist), you can use bootlocal.sh like so:

docker@boot2docker:~$ 
echo 'su docker -c "tce-load -wi python" && \
  curl https://bootstrap.pypa.io/get-pip.py | \
  python - && pip install -U docker - compose' | \ 
  sudo tee /var/lib/boot2docker/bootlocal.sh > /dev/null && \
  sudo chmod +x /var/lib/boot2docker/bootlocal.sh

(The su docker -c gymnastics are required since tce-load cannot be run as root, and bootlocal.sh is run as root. The chmod ofbootlocal.sh should be unnecessary once # 915 is fix .
Add -a to thetee command if you need to append, rather than overwrite bootlocal.sh.)

If you wish to use a pre-release version ofdocker – compose, then replace pip install -U docker - compose withpip install -U docker - compose>=1.3.0rc1 or equivalent .


Original answer:

I also run docker - compose (on Windows boot2docker) in a image by:

From there, a ‘dc up‘ or ‘dc ps‘ just works. On Windows. With boot2docker 1.6.