Docker-compse安装与卸载

1.二进制包安装(亲测成功)

参考:https://github.com/docker/compose/releases

1.github源

curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

2.Daocloud镜像

curl -L https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

2.pip安装(没成功)

首先安装epel扩展源:

  yum -y install epel-release

更新完成之后,就可安装pip:

  yum -y install python-pip

安装完成之后清除cache:

  yum clean all

升级pip

pip install --upgrade pip

安装docker-compose

sudo pip install -U docker-compose

如果安装失败,指定一下国内镜像源

pip install docker-compose -i  https://pypi.douban.com/simple

查看版本

docker-compose --version

3.卸载

二进制执行

sudo rm /usr/local/bin/docker-compose

pip执行

sudo pip uninstall docker-compose

你可能感兴趣的:(Docker-compse安装与卸载)