Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the installation process #28

Open
derfel1989 opened this issue Jan 29, 2022 · 1 comment
Open

Update the installation process #28

derfel1989 opened this issue Jan 29, 2022 · 1 comment

Comments

@derfel1989
Copy link

Might be like that (Ubuntu 20.04.3 LTS):

1 - Ensure you have installed docker-compose.
$ apt install docker-compose

2 - download compose-switch binary for your architecture
$ curl -fL https://github.com/docker/compose-switch/releases/download/v1.0.4/docker-compose-linux-amd64 -o /usr/bin/compose-switch

3 - make compose-switch executable
$ chmod +x /usr/bin/compose-switch

4 - rename docker-compose binary to docker-compose-v1
$ mv /usr/bin/docker-compose /usr/bin/docker-compose-v1

5 - define an "alternatives" group for docker-compose command:
$ update-alternatives --install /usr/bin/docker-compose docker-compose /usr/bin/docker-compose-v1 1
$ update-alternatives --install /usr/bin/docker-compose docker-compose /usr/bin/compose-switch 99

@oldium
Copy link

oldium commented Feb 19, 2022

Step 1 - renaming a file, which was installed by apt, is generally a bad idea. When you rename a file of an installed package, apt will stop keeping track of the file for possible upgrade or uninstall.

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

No branches or pull requests

2 participants