下载、安装
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
(温馨提示:如果下载速度慢,可以用浏览器借助第三方加速工具(例如:迅雷)下载docker-compose到本地/usr/local/src
补充:我的系统(uname -m)=x86_64
再执行以下命令安装:)
curl -L file:///usr/local/src/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
文件授权即安装完毕
chmod +x /usr/local/bin/docker-compose
docker-compose -version