当前位置:首页 » Linux技术知识

CentOS7下安装Docker-Compose【追求简单】

2018-06-06 17:42 本站整理 浏览(3)

1、   pip -V
-bash: pip: command not found 
2、 yum -y install epel-release
3、 执行成功之后,再次执行yum -y install python-pip
4、对安装好的pip进行升级 pip install --upgrade pip
5、pip install docker-compose
报错:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out
  解决:pip --default-timeout=200 install -U docker-compose
使用命令: pip install 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
6、docker-compose -version
docker-compose version 1.21.2, build a133471