Last active
August 29, 2015 14:21
-
-
Save pine/6a7a99dea8dc65798545 to your computer and use it in GitHub Desktop.
docker-ubuntu:12.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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