centos7下安装docker-composer
安装步骤
- pip -V ,-bash: pip: command not found;
- yum -y install epel-release ;
- yum -y install python-pip ;
- 对pip进行升级pip install --upgrade pip ;
- pip install docker-compose;
- 报错:ReadTimeoutError: HTTPSConnectionPool(host=‘pypi.python.org’, port=443): Read timed out
- 解决:pip --default-timeout=200 install -U docker-compose 解决:pip --default-timeout=200 install -U docker-compose
- 报错: Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
- 解决:pip install docker-compose --ignore-installed requests
- docker-compose -version ;
- docker-compose version 1.21.2, build a133471;