Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Last active August 29, 2015 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v-thomp4/3ee8a51cf58c1d3226ad to your computer and use it in GitHub Desktop.
Save v-thomp4/3ee8a51cf58c1d3226ad to your computer and use it in GitHub Desktop.
Install Docker on Linode

Install Docker on Linode (Ubuntu 12.04)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment