docker-compose 使用

date
Sep 15, 2021
slug
uxqacbfg
status
Published
tags
Docker
summary
type
Post
 

安装

1、下载
$ curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
如果遇到下载速度过慢,请更换为其他源:
$ curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ pip3 install docker-compose
2、配置
$ chmod +x /usr/local/bin/docker-compose
3、测试
$ docker-compose --version

// docker-compose version 1.29.2, build 5becea4c
参考资料:

© 刘德华 2020 - 2023