Skip to content

Instantly share code, notes, and snippets.

@pine
Last active August 29, 2015 14:21
Show Gist options
  • Save pine/6a7a99dea8dc65798545 to your computer and use it in GitHub Desktop.
Save pine/6a7a99dea8dc65798545 to your computer and use it in GitHub Desktop.
docker-ubuntu:12.04
#!/bin/bash
# Docker for Ubuntu 12.04 LTS
# Update Linux Kernel to v3.8
if [[ ! `uname -r` =~ ^3.8 ]]; then
sudo apt-get update
sudo apt-get install -y linux-image-generic-lts-trusty
sudo reboot
exit
fi
# Install wget
if ! type wget >/dev/null 2>&1; then
sudo apt-get install -y wget
fi
# Install Docker
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