Skip to content

Instantly share code, notes, and snippets.

@nsisodiya
Created August 15, 2015 06:22
Show Gist options
  • Save nsisodiya/722b889a5d6bc73154c8 to your computer and use it in GitHub Desktop.
Save nsisodiya/722b889a5d6bc73154c8 to your computer and use it in GitHub Desktop.
Upgrade to Docker 1.8 on ubuntu box
sudo su
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*
apt-get purge docker.io*
apt-get install docker-engine
exit
Copy link

ghost commented Oct 18, 2015

You should probably bail out of this script if /etc/lsb-release isn't found - it wasn't on my Debian box

@ottes
Copy link

ottes commented Oct 27, 2015

-y at the purge commands, than copy&paste of the complete block would work

@IanLee1521
Copy link

(At least in Linux Mint 17.2), you could also change this to lsb-release -cs instead of cat /etc/lsb-release | grep DISTRIB_CODENAME ...

@IanLee1521
Copy link

Alternatively, apparently Docker provides a script to do this one in their docs:

wget -qO- https://get.docker.com/ | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment