xiaoming728

xiaoming728

安装 docker-compose

2023-12-11
安装 docker-compose

1、下载docker-compose

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

2、设置docker-compose权限

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

3、测试docker-compose是否安装成功

$ docker-compose --version
docker-compose version 1.26.0, build 1110ad01