可以使用以下步骤在 Amazon Linux 上安装 docker-compose
:
-
下载
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
-
赋予执行权限:
sudo chmod +x /usr/local/bin/docker-compose
-
验证安装:
docker-compose --version