docker-compose-installation

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

Example

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容