Skip to content

Instantly share code, notes, and snippets.

@joshuaebowling
Created April 23, 2017 03:37
Show Gist options
  • Save joshuaebowling/c2968c4d83a1d77ffe712c4092a1e8cd to your computer and use it in GitHub Desktop.
Save joshuaebowling/c2968c4d83a1d77ffe712c4092a1e8cd 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