Add docker-compose plugin support for openSUSE/SLES - #541
Open
floh96 wants to merge 1 commit into
Open
Conversation
On SLES/openSUSE, the Compose v2 CLI plugin is distributed as the 'docker-compose' package (via openSUSE OBS Virtualization:containers), not 'docker-compose-plugin' as on Debian/Ubuntu systems. The package installs the binary to /usr/lib/docker/cli-plugins/, making 'docker compose' available as a Docker CLI subcommand. Two changes: - vars/Suse.yml: set docker_compose_package to 'docker-compose' - tasks/main.yml: remove 'Suse' from the exclusion list in the 'Install docker-compose plugin' task, so SUSE uses the generic package task (without allow_downgrade, which zypper does not support). This mirrors the existing pattern for docker_packages installation (lines 22-37).
floh96
force-pushed
the
feat/suse-docker-compose-plugin
branch
from
April 13, 2026 09:37
39da67b to
bec6dc9
Compare
Author
|
@geerlingguy Could you please review? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On SLES/openSUSE, the Compose v2 CLI plugin is distributed as the `docker-compose` package (via openSUSE OBS `Virtualization:/containers`), not `docker-compose-plugin` as on Debian/Ubuntu systems. The package installs the binary to `/usr/lib/docker/cli-plugins/`, making `docker compose` available as a Docker CLI subcommand.
Previously, `Suse` was explicitly excluded from both compose plugin installation tasks in `tasks/main.yml`, so `docker_install_compose_plugin: true` had no effect on SLES/openSUSE.
Changes
Testing
Verified on SLES 15 SP7 — `docker compose version` returns `Docker Compose version 2.22.0` after installation. Idempotent on re-run (no spurious `changed`).
🤖 Generated with Claude Code