一、docker-compose的安装
Ⅰ、yum安装
1、安装python-pip
yum -y install epel-release yum -y install python-pip
2、安装docker-compose
pip install docker-compose
3、安装报错:You are using pip version 8.1.2, however version 20.1.1 is available
解决方法:
[root@k8s-master network-scripts]# python -m pip install --upgrade pip
Ⅱ、github安装
1、下载
2、下载到centos下
3、重新命名并且移动至/usr/local/bin目录下,添加可执行权限
[root@localhost local]# mv docker-compose-Linux-x86_64 docker-compose
[root@localhost local]# chmod +x docker-compose
4、在任意目录下测试都能执行docker-compose