Skip to content

Instantly share code, notes, and snippets.

@shinwachi
Created August 23, 2020 19:47
Show Gist options
  • Select an option

  • Save shinwachi/cd9bb267122b8f38f2b36c32d9178b6b to your computer and use it in GitHub Desktop.

Select an option

Save shinwachi/cd9bb267122b8f38f2b36c32d9178b6b to your computer and use it in GitHub Desktop.
docker install ubuntu 16
# (log in)
sudo su
apt-get update
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
exit
sudo usermod -aG docker $USER
exit
# (log back in)
docker run hello-world ; if [ $? -eq 0 ] ; then echo '### docker ok' ; else echo '### docker not ok' ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment