docker-compose部署

安装docker-compose

1.从GitHub上下载docker-compose二进制文件安装

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

GitHub访问太慢,可以从daocloud下载

sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

添加可执行权限

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

测试安装结果

[root@localhost ~]# docker-compose --version
docker-compose version 1.25.1, build a82fef07

 2.使用pip安装

sudo pip install docker-compose

 

上一篇:mybatis实体类属性名和列名不同的处理方式


下一篇:Mysql int类型字段插入表达式,值为0或1