Skip to content

Instantly share code, notes, and snippets.

@jamiekurtz
Last active December 5, 2015 01:32
Show Gist options
  • Save jamiekurtz/17b6ea03a6dc057c1d5d to your computer and use it in GitHub Desktop.
Save jamiekurtz/17b6ea03a6dc057c1d5d to your computer and use it in GitHub Desktop.
This script is used to install Docker onto a new Ubuntu 14.04 (Trusty) server on AWS EC2
#!/bin/bash
# This script is used to install Docker onto a new Ubuntu 14.04 (Trusty) server on AWS EC2
# (as of 12/4/2015)
# Assumes current user is ubuntu
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get -y purge lxc-docker
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo apt-get -y install docker-engine
sudo service docker start
sudo usermod -aG docker ubuntu
# log out and back in to be able to use the
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment