1. 下载 docker-compose 可执行程序
# 【https://github.com/docker/compose/releases】可以在 Github 上查询合适的版本下载
curl -L "https://github.com/docker/compose/releases/download/v2.0.0-rc.3/docker-compose-linux-amd64" -o /usr/local/bin/docker-compose
2. 授予执行权限
chmod +x /usr/local/bin/docker-compose
3. 创建软链接
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose