Created
October 31, 2020 21:05
-
-
Save dogukanturan/73f06b5794bf48e927d499a3836dccc5 to your computer and use it in GitHub Desktop.
Docker on Debian/Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#---INSTALL--- | |
#1) chmod +x docker-install.sh | |
#2) ./docker-install.sh | |
echo -e "[+] - SYSTEM IS UPDATING \n" | |
sudo apt update -y && sudo apt upgrade -y | |
echo -e "[+] - DOCKER IS INSTALLING \n" | |
sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt update -y | |
sudo apt install -y docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker ${USER} | |
echo -e "[+] - DOCKER COMPOSE INSTALL \n" | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/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