Skip to content

feat: support to install docker compose as docker CLI plugins#31

Open
prakasa1904 wants to merge 2 commits into
githubixx:masterfrom
devetek:fix-missing-deps
Open

feat: support to install docker compose as docker CLI plugins#31
prakasa1904 wants to merge 2 commits into
githubixx:masterfrom
devetek:fix-missing-deps

Conversation

@prakasa1904
Copy link
Copy Markdown
Contributor

@prakasa1904 prakasa1904 commented Apr 3, 2026

Description

Adding features to install docker-compose in 2 kind versions:

  1. is standalone binary, helpful for legacy environment where depend on legacy binary docker-compose.
  2. is docker plugin, it is the way to execute compose with command docker compose

Copy link
Copy Markdown
Owner

@githubixx githubixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I've merged a new version which already contains handling python3-apt e.g. Please update your PR accordingly. Then I can have a second look.

Comment thread defaults/main.yml
# - standalone: The standalone "docker-compose" binary. This is the old way to use "docker-compose". The binary is called "docker-compose" and is installed in a directory defined by `docker_compose_bin_directory` variable. This is the default value for `docker_compose_type` variable.
# - plugin: The "docker compose" plugin for "docker" CLI. This is the new way to use "docker-compose". The binary is called "docker-compose" and is installed in "/usr/local/lib/docker/cli-plugins/docker-compose". This is the recommended way to use "docker-compose" and is the default value for `docker_compose_type` variable.
# When commented no "docker-compose" will be installed and all "docker_compose_*" variables will be ignored.
docker_compose_type: "plugin"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker_compose_type: "plugin"
docker_compose_type: "standalone"

Otherwise this would change the current default and I'm not a big fan of changing defaults as people are not expecting such changes normally. I guess that might make sense for the next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants