Created
November 7, 2014 04:03
-
-
Save sumodirjo/484eeee58c7daa34363e to your computer and use it in GitHub Desktop.
Install Docker Latest on Ubuntu 14.04
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 | |
echo "Check HTTPS Transport support for APT" | |
# Check that HTTPS transport is available to APT | |
if [ ! -e /usr/lib/apt/methods/https ]; then | |
echo "Installing apt-transport-https" | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
fi | |
echo "Add repository to APT Sources" | |
# Add the repository to your APT sources | |
echo "deb https://get.docker.com/ubuntu docker main" | sudo tee -a /etc/apt/sources.list.d/docker.list > /dev/null | |
echo "Import Repository Key" | |
# Then import the repository key | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# Install docker | |
echo "Installing docker" | |
sudo apt-get update | |
sudo apt-get install -y lxc-docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment