centos7安裝docker compose
執行yum install python-pip 安裝pip
報錯了:No package python-pip available
先執行yum -y install epel-release
然後在執行上面的yum install python-pip
裝完pip之後就可以安裝pip install docker-compose
提示我版本不對,需要安裝最新的版本
You are using pip version 8.1.2, however version 9.0.1 is available
You should consider upgrading via the 'pip install --upgrade pip' command
Advertisements
需要重新安裝pip install --upgrade pip后再安裝compose
所以總的命令流程如下:
yum -y install epel-release
yum install python-pip
pip install --upgrade pip
pip install docker-compose