跳至正文

安装docker-compose

可以使用以下步骤在 Amazon Linux 上安装 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. 赋予执行权限

    sudo chmod +x /usr/local/bin/docker-compose
  3. 验证安装

    docker-compose --version