Last active
March 11, 2018 18:40
-
-
Save carlosflorencio/3a2b831577fb3e78c785301ff7bac17d to your computer and use it in GitHub Desktop.
sudo curl -sL https://gist.githubusercontent.com/carlosflorencio/3a2b831577fb3e78c785301ff7bac17d/raw/7724369cff58147133a4cf524308a63114c4c0ce/docker-ce-install.sh | sudo -E bash -
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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