Skip to content

Instantly share code, notes, and snippets.

@KROSF
Created July 21, 2020 13:00
Show Gist options
  • Save KROSF/25732777d066e39c76ab529e28a8f30c to your computer and use it in GitHub Desktop.
Save KROSF/25732777d066e39c76ab529e28a8f30c to your computer and use it in GitHub Desktop.
Install docker and docker-compose
#!/usr/bin/env sh
COMPOSE_VERSION=1.26.2
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl
curl -fsSL https://get.docker.com | sudo sh
sudo curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/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