Skip to content

Instantly share code, notes, and snippets.

@nam20485
Last active January 30, 2019 10:54
Show Gist options
  • Save nam20485/ad6f9c302bf67d1ac70ac059088bc1ab to your computer and use it in GitHub Desktop.
Save nam20485/ad6f9c302bf67d1ac70ac059088bc1ab to your computer and use it in GitHub Desktop.
install docker from respository
#! /bin/sh
UBUNTU_RELEASE=bionic
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
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 $UBUNTU_RELEASE stable"
sudo apt-get update
sudo apt-get install -qqy docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment