Last active
December 4, 2018 07:49
-
-
Save Aukhan/d0c71d8eeb6372a38b731b50f9791e4c to your computer and use it in GitHub Desktop.
Quick docker installation on ubuntu
This file contains hidden or 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
# !/bin/bash | |
# update package lists | |
sudo apt-get update | |
# install required packages for installation | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common -y | |
# Add Docker’s official GPG key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Add repository for your release vesion | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
# update package index | |
sudo apt-get update | |
# install docker community edition | |
sudo apt-get install docker-ce -y | |
# add your user to the docker group so you don't have to use sudo | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment