created: 20150706134157211 creator: user modified: 20150706134701187 modifier: user tags: docker title: docker-compose type: text/vnd.tiddlywiki http://stackoverflow.com/questions/29289785/how-to-install-docker-compose-on-windows To install docker-compose from PyPI, run this from inside boot2docker: ```bash 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: ```bash 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` of `bootlocal.sh` should be unnecessary once #915 is fixed. Add -a to the `tee` command if you need to append, rather than overwrite `bootlocal.sh`.) If you wish to use a pre-release version of docker-compose, then replace `pip install -U docker-compose` with `pip install -U docker-compose>=1.3.0rc1` or equivalent.