Skip to content

Instantly share code, notes, and snippets.

@lnikon
Forked from joshuaebowling/do-install-docker.sh
Created February 14, 2020 13:58
Show Gist options
  • Save lnikon/70f67948f35869bb76847c71eaa13f77 to your computer and use it in GitHub Desktop.
Save lnikon/70f67948f35869bb76847c71eaa13f77 to your computer and use it in GitHub Desktop.
digital ocean installing docker
# instructions from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
# Add the GPG key for the official Docker repository to the system
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Add the Docker repository to APT sources:
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
# Update the package database with the Docker packages from the newly added repo:
sudo apt-get update
# Make sure you are about to install from the Docker repo instead of the default Ubuntu 16.04 repo:
apt-cache policy docker-engine
# install from proper repo
sudo apt-get install -y docker-engine
# check its running
sudo systemctl status docker
#update running perms
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment