Docker Docker-compose 安装配置

1.参考官方文档

https://docs.docker.com/compose/install/

2.下载安装

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

不同版本

curl -L https://github.com/docker/compose/releases/download/1.25.0-rc2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

3.增加可执行权限

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

4.软连接到/usr/bin

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

5.验证

[root@dn07 bin]# docker-compose --version
docker-compose version 1.25.0-rc2, build 661ac20e

posted @ 2019-09-04 11:30  彦祚  阅读(393)  评论(0编辑  收藏  举报