1、安装 pip :
# yum -y install epel-release
# yum -y install python-pip
# pip install --upgrade pip
2、安装Docker-Compose:
# pip install docker-compose
3、查看版本
# docker-compose -version
4、启动
# docker-compose up -d
可能的报错:
1.pip升级时报错
解决方法:
# wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
# python get-pip.py
# pip install --upgrade setuptools
2.启动docker-compose时报错
解决方法:
按照提示执行 docker network create [network名称]
标签:compose,network,install,pip,docker,安装 From: https://www.cnblogs.com/gaofugui/p/17329396.html