Last active
September 27, 2019 16:58
-
-
Save mosleim/646ef74358e24afe370652ff054fbc32 to your computer and use it in GitHub Desktop.
Install docker on debian family
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/sh | |
apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
apt update | |
apt install -y docker-ce docker-compose | |
#login to vult | |
#if you don't have an account, | |
#register from here https://www.vultr.com/?ref=8221027-4F | |
#and you can get $50 free deposite. | |
#go to product (left menu) | |
#tap tab script | |
#add script | |
#replace all sample script with this code(copy-paste) | |
#input the name of scrict (whatever you whan) | |
#create an intance and don't forget to select the script. | |
#login ssh, and your instance will have a docker installed. :-) |
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
cd ~ | |
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
sudo apt update | |
sudo apt install docker-ce docker-compose | |
sudo usermod -aG docker ${USER} | |
su - ${USER} | |
id -nG | |
#create newfile | |
#fill with this command | |
#chmod +x namefile | |
#run it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment