Centos7安装Docker-Compose

下载包

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

注意出现:curl: (35) Peer reports incompatible or unsupported protocol version.

需要更新nss,curl

1
sudo yum update nss curl

授权

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

查看版本

1
docker-compose --version

参考:

https://docs.docker.com/compose/install/#install-compose