-
-
Save gg7/10d3d0a7524559a96be1 to your computer and use it in GitHub Desktop.
Upgrade to Docker 1.8 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 | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
echo deb https://apt.dockerproject.org/repo ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main > /etc/apt/sources.list.d/docker.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D | |
apt-get update | |
apt-get purge 'lxc-docker*' 'docker.io*' | |
apt-get install docker-engine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment