centos 安装 docker-compose 的快速简单办法
直接使用yum install docker-compose 会返回nothing to do, 可以使用pip3来安装
安装 Docker Compose
(1)执行如下命令安装 pip3:
yum -y install python3-pip pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
(2)执行如下命令安装 docker-compose:
pip3 install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
(3)安装完毕后执行如下命令查看版本:
# docker-compose version /usr/local/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6. from cryptography.hazmat.backends import default_backend docker-compose version 1.29.2, build unknown docker-py version: 5.0.3 CPython version: 3.6.8 OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
参考:https://www.cnblogs.com/qidaii/articles/17464832.html