Skip to content

Instantly share code, notes, and snippets.

@pomo-mondreganto
Created March 15, 2020 14:50
Show Gist options
  • Save pomo-mondreganto/2ff00f1e3b9fcef734058b3a1b5c1b1c to your computer and use it in GitHub Desktop.
Save pomo-mondreganto/2ff00f1e3b9fcef734058b3a1b5c1b1c to your computer and use it in GitHub Desktop.
Script for Docker + Docker-compose installation
#!/bin/sh
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
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