compose/docs/install.md

30 lines
1.2 KiB
Markdown
Raw Normal View History

2014-01-27 16:03:21 +01:00
---
layout: default
title: Installing Fig
---
Installing Fig
==============
First, install Docker version 1.3 or greater.
2014-01-27 16:03:21 +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 Fig to talk to it:
2014-01-27 16:03:21 +01:00
$(boot2docker shellinit)
To persist the environment variables across shell sessions, you can add that line to your `~/.bashrc` file.
There are also guides for [Ubuntu](https://docs.docker.com/installation/ubuntulinux/) and [other platforms](https://docs.docker.com/installation/) in Dockers documentation.
2014-01-27 16:03:21 +01:00
Next, install Fig:
2014-01-27 16:03:21 +01:00
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
Optionally, install [command completion](completion.html) for the bash shell.
Releases are available for OS X and 64-bit Linux. Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):
$ sudo pip install -U fig
2014-01-27 16:03:21 +01:00
That should be all you need! Run `fig --version` to see if it worked.