安装Docker compose

[root@iz2zea99qngm2xmegtkiu0z ~]# curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0    765      0 --:--:-- --:--:-- --:--:--   765
100 10.3M  100 10.3M    0     0  22547      0  0:08:01  0:08:01 --:--:-- 16892
[root@iz2zea99qngm2xmegtkiu0z ~]# chmod +x /usr/local/bin/docker-compose
[root@iz2zea99qngm2xmegtkiu0z ~]# docker-compose -v
docker-compose version 1.21.2, build a133471

 

附上英文原版安装教程:https://docs.docker.com/compose/install/

Compose 项目是 Docker官方的负责实现Docker容器集群编排 的 开源项目,代码在https://github.com/docker/compose 上,它通过docker-compose.yml来定义一组容器来部署整套应用。

 

posted @ 2020-01-06 10:31  喵喵2023  Views(188)  Comments(0Edit  收藏  举报