ansible-role-docker icon indicating copy to clipboard operation
ansible-role-docker copied to clipboard

Install docker compose

Open craph opened this issue 3 years ago • 0 comments
trafficstars

Hello,

Just a little question about the installation of Docker Compose V2. In your role, you specify both method I guess to install Docker Compose V2. The first one with docker-compose-plugin package that is the best way to proceed if we follow the documentation and another method with the binary files in your docker-compose.yml.

Why both method ?

More over, in your docker-compose.yml you have defined the docker-compose path to : /usr/local/bin/docker-compose But in the documentation the correct path are : https://github.com/docker/compose#linux

Linux
You can download Docker Compose binaries from the [release page](https://github.com/docker/compose/releases) on this repository.

Rename the relevant binary for your OS to docker-compose and copy it to $HOME/.docker/cli-plugins

Or copy it into one of these folders to install it system-wide:

/usr/local/lib/docker/cli-plugins OR /usr/local/libexec/docker/cli-plugins
/usr/lib/docker/cli-plugins OR /usr/libexec/docker/cli-plugins
(might require making the downloaded file executable with chmod +x)

Thank you for helping me to understand why you defined both method in your role

craph avatar Sep 14 '22 06:09 craph