一、安装步骤

  1. 添加企业版附加包。

    yum -y install epel-release
  2. 安装 PIP。

    SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
    yum -y install python-pip
  3. 更新 PIP。

    pip install --upgrade pip
  4. 安装 Docker Compose

    pip install 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.

这个时候,你需要执行以下命令强制重新安装 request。

pip install -I requests==2.9

安装完成之后,Docker-Compose 安装成功。

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄