Skip to content

Instantly share code, notes, and snippets.

@joryhatton
Created October 28, 2019 20:57
Show Gist options
  • Save joryhatton/585e3115a521b4b5224aaeb6a605da5e to your computer and use it in GitHub Desktop.
Save joryhatton/585e3115a521b4b5224aaeb6a605da5e to your computer and use it in GitHub Desktop.
Install Docker and Docker Compose on Linux (Debian, Ubuntu) - Referenced from https://github.com/fulstop/backpack/blob/master/docker.sh
#!/bin/bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# and docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment