Install Docker on Ubuntu 14 EC2

If you just try to run sudo apt-get install docker on an ubuntu 14 ec2 instance it will not install correctly. Here is how I set up docker:

Install Generic Kernel

sudo apt-get install linux-generic -y
sudo reboot

Install Docker

sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt-get install curl -y
sudo curl -s | sudo sh

You may want to add the ubuntu user to the docker group so that they can use the docker commands without using sudo.

sudo usermod -a -G docker ubuntu
You need to log out and in again before this takes effect!

You may also wish to configure docker to use the LXC engine.

No comments:

Post a Comment