Skip to content

Instantly share code, notes, and snippets.

@dnaprawa
Created February 1, 2021 07:44
Show Gist options
  • Save dnaprawa/66b9ae5cb7e6b110f2e64bef3f2359ff to your computer and use it in GitHub Desktop.
Save dnaprawa/66b9ae5cb7e6b110f2e64bef3f2359ff to your computer and use it in GitHub Desktop.
Install Docker & docker-compose on Ubuntu/Debian

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

#!/bin/bash

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

sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

Run sudo docker-install.sh script

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