大飞_dafei

导航

Ubuntu 15 安装docker docker-compose

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

 

 

 

参考地址:

官方 docker-compose

安装DOCKER,DOCKER-COMPOSE

docker-—-从入门到实践

docker搭建nginx+php+mysql开发环境

posted on 2018-02-11 10:31  大飞_dafei  阅读(123)  评论(0编辑  收藏  举报