Skip to content

Instantly share code, notes, and snippets.

@alanwill
Created February 22, 2016 19:45
Show Gist options
  • Save alanwill/f89ab22d391103ecab86 to your computer and use it in GitHub Desktop.
Save alanwill/f89ab22d391103ecab86 to your computer and use it in GitHub Desktop.
Install Docker OS (Open Source) Engine on ubuntu. This assumes that `linux-image-extra-virtual` is already installed
#!/bin/bash
apt-get update -y
apt-get install apt-transport-https ca-certificates -y
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
rm -f /etc/apt/sources.list.d/docker.list
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | tee /etc/apt/sources.list.d/docker.list
apt-get update -y
apt-get purge lxc-docker -y
apt-get install docker-engine -y
service docker start
usermod -a -G docker ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment