Ubuntu 15 安装docker docker-compose
1、通过阿里镜像安装
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
2、安装docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
如果出现超时,加上2个参数:
--connect-timeout 100000 -m 1000000
-m为数据最大传输时间
curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose --connect-timeout 100000 -m 1000000
3、添加执行权限:
chmod +x /usr/local/bin/docker-compose
4、确认已经安装:
docker-compose --version
参考地址: