安装Docker Compose

安装

Docker Compose 存放在 Github

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

国内推荐使用高速安装 Docker Compose

Copy
root@ubuntu:~# curl -L https://get.daocloud.io/docker/compose/releases/download/v2.6.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

授权

Copy
root@ubuntu:~# chmod +x /usr/local/bin/docker-compose

验证

Copy
root@ubuntu:~# docker-compose -v
Docker Compose version v2.6.1