Docker docker-compose
docker-compose && fig
Installation
curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
or you can install docker-compose by PyPi(Python Package Index)
pip install docker-compose
Install python pip
Note:
Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1.
refer to :https://pip.pypa.io/en/stable/
Method 1:
## install pip by yum method under centos
yum install -y python-pip
Method 2:
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
tar zvxf 1.5.5.tar.gz
cd pip-1.5.5
python setpu.py install
## at last , use pip to install software
pip install <software-name>
Usage
## get docker-compose help
docker-compose -h
## get certain command help
docker <command> -h
## start service
docker run
##
docker up