Skip to content

Instantly share code, notes, and snippets.

@carlosflorencio
Last active March 11, 2018 18:40
Show Gist options
  • Save carlosflorencio/3a2b831577fb3e78c785301ff7bac17d to your computer and use it in GitHub Desktop.
Save carlosflorencio/3a2b831577fb3e78c785301ff7bac17d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Uninstall old versions
sudo apt-get remove docker docker-engine docker.io
# Recommended extra packages for Trusty 14.04
sudo apt-get update
sudo apt-get install -y \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
# SET UP THE REPOSITORY
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"
# INSTALL DOCKER CE
sudo apt-get update
sudo apt-get install -y docker-ce
echo "-> Docker installed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment