Skip to content

Instantly share code, notes, and snippets.

@nwtgck
Last active August 7, 2019 12:46
Show Gist options
  • Save nwtgck/79c04a16480c039166fcf061e77ceb8e to your computer and use it in GitHub Desktop.
Save nwtgck/79c04a16480c039166fcf061e77ceb8e to your computer and use it in GitHub Desktop.
Install docker for Ubuntu16
#! /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
@nwtgck
Copy link
Author

nwtgck commented Aug 10, 2018

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.

@nwtgck
Copy link
Author

nwtgck commented Aug 7, 2019

少し新しくなってるので、
https://docs.docker.com/install/linux/docker-ce/ubuntu/
を見て更新したほうがよいかも

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment