2014-01-27 16:03:21 +01:00
|
|
|
---
|
|
|
|
layout: default
|
2015-01-20 18:29:28 +01:00
|
|
|
title: Installing Compose
|
2015-01-19 06:46:23 +01:00
|
|
|
page_title: Installing Compose
|
|
|
|
page_description: Installing Compose
|
|
|
|
page_keywords: fig, composition, compose, docker
|
2014-01-27 16:03:21 +01:00
|
|
|
---
|
|
|
|
|
2015-01-19 06:46:23 +01:00
|
|
|
# Installing Compose
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2014-09-17 00:57:48 +02:00
|
|
|
First, install Docker version 1.3 or greater.
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-19 06:46:23 +01:00
|
|
|
If you're on OS X, you can use the [OS X installer](https://docs.docker.com/installation/mac/)
|
|
|
|
to install both Docker and boot2docker. Once boot2docker is running, set the environment
|
|
|
|
variables that'll configure Docker and Compose to talk to it:
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2014-10-16 17:35:20 +02:00
|
|
|
$(boot2docker shellinit)
|
2014-09-17 00:57:48 +02:00
|
|
|
|
2015-01-19 06:46:23 +01:00
|
|
|
To persist the environment variables across shell sessions, you can add that line
|
|
|
|
to your `~/.bashrc` file.
|
2014-09-17 00:57:48 +02:00
|
|
|
|
2015-01-19 06:46:23 +01:00
|
|
|
There are also guides for [Ubuntu](https://docs.docker.com/installation/ubuntulinux/)
|
|
|
|
and [other platforms](https://docs.docker.com/installation/) in Docker`s documentation.
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-20 18:29:28 +01:00
|
|
|
Next, install Compose:
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-29 19:12:51 +01:00
|
|
|
curl -L https://github.com/docker/fig/releases/download/1.1.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose; chmod +x /usr/local/bin/docker-compose
|
2014-03-03 16:20:09 +01:00
|
|
|
|
2014-12-25 11:16:45 +01:00
|
|
|
Optionally, install [command completion](completion.html) for the bash shell.
|
|
|
|
|
2015-01-19 06:46:23 +01:00
|
|
|
Releases are available for OS X and 64-bit Linux. Compose is also available as a Python
|
|
|
|
package if you're on another platform (or if you prefer that sort of thing):
|
2014-03-03 16:20:09 +01:00
|
|
|
|
2015-01-20 18:29:28 +01:00
|
|
|
$ sudo pip install -U docker-compose
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-20 18:29:28 +01:00
|
|
|
That should be all you need! Run `docker-compose --version` to see if it worked.
|