2015-01-19 06:46:23 +01:00
|
|
|
page_title: Installing Compose
|
2015-01-31 02:16:48 +01:00
|
|
|
page_description: How to intall Docker Compose
|
|
|
|
page_keywords: compose, orchestration, install, installation, docker, documentation
|
2014-01-27 16:03:21 +01:00
|
|
|
|
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
## Installing Compose
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
To install Compose, you'll need to install Docker first. You'll then install
|
|
|
|
Compose with a `curl` command.
|
|
|
|
|
|
|
|
### Install Docker
|
|
|
|
|
|
|
|
First, you'll need to install Docker version 1.3 or greater.
|
|
|
|
|
|
|
|
If you're on OS X, you can use the
|
|
|
|
[OS X installer](https://docs.docker.com/installation/mac/) to install both
|
|
|
|
Docker and the OSX helper app, 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-31 02:16:48 +01:00
|
|
|
To persist the environment variables across shell sessions, add the above line
|
2015-01-19 06:46:23 +01:00
|
|
|
to your `~/.bashrc` file.
|
2014-09-17 00:57:48 +02:00
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
For complete instructions, or if you are on another platform, consult Docker's
|
|
|
|
[installation instructions](https://docs.docker.com/installation/).
|
|
|
|
|
|
|
|
### Install Compose
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
To install Compose, run the following commands:
|
2014-01-27 16:03:21 +01:00
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
curl -L https://github.com/docker/docker-compose/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
|
|
|
|
2015-02-23 04:56:13 +01:00
|
|
|
Optionally, you can also install [command completion](completion.md) for the
|
2015-01-31 02:16:48 +01:00
|
|
|
bash shell.
|
2014-12-25 11:16:45 +01:00
|
|
|
|
2015-01-31 02:16:48 +01:00
|
|
|
Compose is available for OS X and 64-bit Linux. If you're on another platform,
|
|
|
|
Compose can also be installed as a Python package:
|
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-31 02:16:48 +01:00
|
|
|
No further steps are required; Compose should now be successfully installed.
|
|
|
|
You can test the installation by running `docker-compose --version`.
|