1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
dotTiddlywiki/mywiki/tiddlers/docker-compose.tid
Aiko Mastboom 79d23fbd4f update
2015-07-08 07:37:40 +02:00

34 lines
1.3 KiB
Plaintext

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.