Skip to content

Instantly share code, notes, and snippets.

Created Feb 1, 2021
What would you like to do?
Install Docker & docker-compose on Ubuntu/Debian

Create a .sh file - eg. and paste following:


sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL -o
sudo sh
sudo usermod -aG docker $USER
sudo systemctl enable docker

sudo curl -L$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

Run sudo script

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