When installing Docker on a Linode instance, you need make a couple Linode config changes to install and use the stock Ubuntu 12.04 Kernel.
Thanks to ysimonson for posting the information here. I wanted to document the whole process in a single place, and fill in a couple gaps.
The steps to install the default kernel are all listed below, but here is the official Linode documentation on the process.
After creating an instance of the Ubuntu 12.04 image and booting the node, login and issue the following commands.
# apt-get update # apt-get install linux-virtual grub-legacy-ec2
Find this line in /boot/grub/menu.list:
# defoptions=console=hvc0
** Do not uncomment the line below ** (I emphasize that because I did despite the Linode wiki telling me not to =)
Append rootflags=nobarrier so it looks like this:
# defoptions=console=hvc0 rootflags=nobarrier
Regenerate /boot/grun/menu.lst with this command:
# update-grub-legacy-ec2
Next, go to your Linode Manager Dashboard and edit the configuration profile of this instance.
Make the following changes, and save.
Kernel: pv-grub-x86_64
Xenify Distro: No
Reboot the server after saving the configuration.
There are 2 ways to install Docker
Docker install option 1: Curl
# curl http://get.docker.io | sh
Docker install option 2: Getting started documentation
You will need to install python-software-properties in orer for the Docker, Getting Started documentation to work. (That is so the add-apt-repository command will work)
# apt-get install python-software-properties
Now, onto installing Docker: (Getting started instructions as of 7/20/2013)
# apt-get install linux-image-extra-`uname -r` # apt-get install software-properties-common # add-apt-repository ppa:dotcloud/lxc-docker # apt-get update # apt-get install lxc-docker
Test the install by running Docker!
# docker run -i -t ubuntu /bin/bash