docker安装docker-compose

依次执行一下命令

1
2
3
4
5
6
7
8
9
10
11
12
# 58.6M
curl -L "https://github.com/docker/compose/releases/download/v2.24.7/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

# 给权限
chmod +x /usr/local/bin/docker-compose

# 查看结果
docker-compose -v

# 显示这个则下载成功
Docker Compose version v2.24.7