Use update-alternatives for docker-compose

Open
#320 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, shell
Domain
devops

Research direction

Start with the repository's install script and review how the Docker Compose plugin is installed and exposed. Evaluate the proposed update-alternatives command across supported environments; done means the script reliably provides the expected docker-compose command without breaking existing installations.

Written by the indexing model from the issue text.

Description

Should the install script use update-alternatives to link back to the newer docker-compose-plugin?

update-alternatives --install /usr/local/bin/docker-compose docker-compose /usr/libexec/docker/cli-plugins/docker-compose 1

This would create a symlink from /usr/libexec/docker/cli-plugins/docker-compose to /usr/local/bin/docker-compose

Dominant language
Shell
Stars
3.2k
Forks
863
Avg merge
3h 15m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/docker-install

All issues in docker/docker-install

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.