• AWS
  • EC2
  • HOW TO
  • IAAS
About Me

This post will cover how to install docker on AWS using Ubuntu 14.04. Overall the process is pretty simple, but we will go over a couple of parts that are good to know. This is assuming you know the basics about Amazon Web Services enough so that you can setup a basic instance. This will be the first building block in a series of posts on how to utilize Docker. If you need a little bit of background on Docker, and the differences between containers and virtual machines, please see my post here: So Long Virtual Machines Hello Containers

As with all Ubuntu projects make sure that your install is properly updated.

sudo apt-get update
sudo apt-get upgrade

So once we have Ubuntu upgraded, we will want to install Docker. We are going to install the most recent version of Docker. In order to do this we will need to add the Docker repository. But, before we do that we need to make sure that our APT system can handle secure repositories:

ls /usr/lib/apt/methods/

Make sure that the file named https is there. If it isn’t you will need to add it:

sudo apt-get install apt-transport-https

Once that is done, or if you already have https present you can add the Docker repository

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

sudo sh -c "echo deb https://get.docker.io/ubuntu docker main\


Once the repository is added we can install the latest Docker package:

sudo apt-get update

sudo apt-get install lxc-docker

Finally, let’s check our work:

sudo docker run -i -t ubuntu /bin/bash

These are the basic steps needed to install Docker on AWS.

If you need additional information on Docker it can be found here