Created
April 23, 2017 03:37
-
-
Save joshuaebowling/c2968c4d83a1d77ffe712c4092a1e8cd to your computer and use it in GitHub Desktop.
digital ocean installing docker
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
# 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