Skip to content

Instantly share code, notes, and snippets.

@ITJesse
Last active October 29, 2016 17:12
Show Gist options
  • Save ITJesse/422650c4cfde5fa38879e46be821a557 to your computer and use it in GitHub Desktop.
Save ITJesse/422650c4cfde5fa38879e46be821a557 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get update && sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
LSB_RELEASE=`lsb_release -c | cut -c 11-16`
KERNEL_VERSION=`uname -r | cut -f1,2 -d"-"`
echo "deb https://apt.dockerproject.org/repo ubuntu-$LSB_RELEASE main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update && sudo apt-get install -y linux-image-extra-$KERNEL_VERSION
sudo apt-get install -y docker-engine
sudo usermod -aG docker `whoami`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment