Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shankie-codes/7474f18a3005a75faefe9d7519688501 to your computer and use it in GitHub Desktop.
Save shankie-codes/7474f18a3005a75faefe9d7519688501 to your computer and use it in GitHub Desktop.
Install / upgrade Docker on Ubuntu
apt-get remove -y docker docker-engine
apt-get update
apt-get install -y \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
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 -
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment