Skip to content

Instantly share code, notes, and snippets.

@mosleim
Last active September 27, 2019 16:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosleim/646ef74358e24afe370652ff054fbc32 to your computer and use it in GitHub Desktop.
Save mosleim/646ef74358e24afe370652ff054fbc32 to your computer and use it in GitHub Desktop.
Install docker on debian family
#!/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. :-)
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