美文网首页Docker
docker-compose-installation

docker-compose-installation

作者: 菩提老鹰 | 来源:发表于2015-12-29 19:34 被阅读50次

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

相关文章

网友评论

    本文标题:docker-compose-installation

    本文链接:https://www.haomeiwen.com/subject/wcrihttx.html