Skip to content

Instantly share code, notes, and snippets.

@abcdan
Last active July 6, 2020 12:38
Show Gist options
  • Save abcdan/a0b3318fc94d87af9ac8a8cd8b89ae19 to your computer and use it in GitHub Desktop.
Save abcdan/a0b3318fc94d87af9ac8a8cd8b89ae19 to your computer and use it in GitHub Desktop.
Install Docker and Docker Compose on Ubuntu without having to look back
sudo apt-get update -y
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
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 -y
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
@abcdan
Copy link
Author

abcdan commented Jul 6, 2020

To install, simply copy the raw link and do wget <link here> and then run with bash docker-setup-ubuntu.sh

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