Skip to content

Email: admin@alshowto.com

Al's Down`N Dirty KB

Al's Down`N Dirty KB

Get`Er Done

  • Home
  • Linux
  • Debian 11 and Docker-Compose

Debian 11 and Docker-Compose

Posted on October 15, 2022December 20, 2022 By admin No Comments on Debian 11 and Docker-Compose
Linux

Installation

Simple article to get the latest Docker Compose on Debian 11

curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url | grep -i "docker-compose-$(uname -s)-$(uname -m)\"$" | cut -d '"' -f 4 | wget -O "docker-compose-$(uname -s)-$(uname -m)" -qi -

Note: If you want the breakdown of this command I will have it on the next page.

Now make executable and move to appropriate bin dir

chmod +x docker-compose-$(uname -s)-$(uname -m)
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Testing

whereis test

tests to see if docker-compose is installed where it is expected to be installed

whereis docker-compose

returns…

docker-compose: /usr/bin/docker-compose /usr/local/bin/docker-compose

LN test

test to see if ln worked as expected from installation

ls -lha /usr/bin/docker-compose

returns…

lrwxrwxrwx 1 root root 29 Oct 15 20:02 /usr/bin/docker-compose -> /usr/local/bin/docker-compose

Version Test

test docker-compose version as normal debian user. Note: adjust for your user

su debian
docker-compose --version

returns…

Docker Compose version v2.11.2

SUDO (root) Version Test

sudo docker-compose --version

returns…

Docker Compose version v2.11.2

Removal

To Remove simply run this command

sudo rm /usr/bin/docker-compose
sudo rm /usr/local/bin/docker-compose

Troubleshooting

See Next Page especially steps 3 and 4 on that page.

Related

Pages: 1 2
Tags: Docker Docker Compose

Post navigation

❮ Previous Post: Configure HAProxy To Serve pfSense GUI
Next Post: Proxmox Mail Behind HAProxy ❯

You may also like

Email
Roundcube Latest Install Script
October 25, 2022
Frigate Birdseye View
Linux
Frigate is Awesome
April 30, 2023
Email
PostfixAdmin Install Latest
October 24, 2022
Linux
Install Docker Compose On Linux
September 19, 2022

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 Al's Down`N Dirty KB.

Theme: Oceanly Premium by ScriptsTown