下载 Docker Compose 二进制文件

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

给与文件可执行权限

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

检测是否可用

docker-compose --version

参考

Docker Compose Install

写的不好,仅供参考