使用docker-compose进行容器编排

安装

docker-compose是docker官方的容器编排工具,由于是python编写的,在centos系统上,首先使用python-pip来下载它:

yum install epel-release -y
yum install python-pip -y
pip --version
pip install --upgrade pip
pip install -U -i https://pypi.tuna.tsinghua.edu.cn/simple docker-compose 
docker-compose version

使用上面一系列的命令后,最终docker-compose安装完毕,打印版本为:

/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version!
  RequestsDependencyWarning)
docker-compose version 1.22.0, build f46880f
docker-py version: 3.4.1
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips  26 Jan 2017

compose 命令

你可能感兴趣的:(使用docker-compose进行容器编排)