How to install Docker compose in Azure pipelines?

Viewed 316

I would like to use Docker Compose task in Azure pipelines, but I am getting following error:

##[error]Unhandled: Docker Compose was not found. You can provide the path to docker-compose via 'dockerComposePath'

How should I install docker compose? Is there a "nice way", something like Docker Installer task?

1 Answers

Unfortunately, there does not seem to be a "clean" step like Docker Installer task for Azure pipelines to install Docker Compose.

However, I have been able to get Docker Compose installed via shell script task which utilizes the local package manager to get/install Docker Compose (e.g. sudo apt-get install -y docker-compose)

- task: ShellScript@2
  displayName: Install Docker-Compose
  inputs:
    scriptPath: 'docker-compose-install.sh'
Related