Linux 安装 Docker Compose

安装

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

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

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

docker-compose --version

卸载

如果您使用curl以下方式安装,则卸载 Docker Compose :

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

如果您使用pip以下方式安装,则卸载 Docker Compose :

 pip uninstall docker-compose