Last active
August 7, 2019 12:46
-
-
Save nwtgck/79c04a16480c039166fcf061e77ceb8e to your computer and use it in GitHub Desktop.
Install docker for Ubuntu16
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
#! /bin/sh -x | |
# (from: https://soralab.space-ichikawa.com/2017/04/docker-ce-install/) | |
sudo apt-get update | |
sudo apt-get install -y\ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
sudo docker run hello-world | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the following to install
curl https://gist.githubusercontent.com/nwtgck/79c04a16480c039166fcf061e77ceb8e/raw/eaab091e619f81bad5d5554351e4ee13ac901c45/install_docker_for_ubuntu16.sh | sh
After that, reboot your machine.