Last active
January 17, 2017 07:13
-
-
Save vishnuvp/ebbc331346de8b1f90d564514d0c9d8d to your computer and use it in GitHub Desktop.
Docker installation steps on Ubuntu16.04
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
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates | |
# Add new GPG key | |
sudo apt-key adv \ | |
--keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
# If the above keyserver is not available, try hkp://pgp.mit.edu:80 or hkp://keyserver.ubuntu.com:80. | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
# Verify apt is pulling from the right repository | |
apt-cache policy docker-engine | |
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
# Install docker engine | |
sudo apt-get install docker-engine | |
# Start docker engine | |
sudo service docker start | |
# Verify installation | |
sudo docker run hello-world | |
# Manage docker as non sudo user | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
gnome-session-quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment