linux下安装docker-compose

1、检查是否安装python-pip

[root@localhost ~]# pip -V

2、已安装pip则跳过该步骤,否则安装pip

[root@localhost ~]# yum -y install epel-release
[root@localhost ~]# yum -y install python-pip
[root@localhost ~]# pip install --upgrade pip

3、安装docker-compose

[root@localhost ~]# pip install docker-compose

安装过程中如果出现Command errored python setup.py egg_info 可尝试升级setuptools

[root@localhost ~]# pip install --upgrade setuptools

4、验证是否成功安装docker-compose

[root@localhost ~]# docker-compose -v
docker-compose version 1.24.1, build 4667896

你可能感兴趣的:(docker)