Skip to content

Instantly share code, notes, and snippets.

@TotalLag
Last active September 16, 2015 18:33
Show Gist options
  • Save TotalLag/25686febbf4c9fa5859e to your computer and use it in GitHub Desktop.
Save TotalLag/25686febbf4c9fa5859e to your computer and use it in GitHub Desktop.
Installs the latest version of Docker
#!/bin/bash
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 --auto-remove lxc-docker* -y &&
apt-get purge --auto-remove docker.io* -y &&
apt-get install docker-engine -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment