Skip to content

Instantly share code, notes, and snippets.

@mkroman
Last active December 5, 2017 00:55
Show Gist options
  • Save mkroman/62c2ee6056bdf915a82698e7ac4d7ee5 to your computer and use it in GitHub Desktop.
Save mkroman/62c2ee6056bdf915a82698e7ac4d7ee5 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo systemctl start docker && sudo systemctl enable docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment