github.com/akashshinde/docker@v1.9.1/docs/installation/rackspace.md (about) 1 <!--[metadata]> 2 +++ 3 title = "Installation on Rackspace Cloud" 4 description = "Installation instructions for Docker on Rackspace Cloud." 5 keywords = ["Rackspace Cloud, installation, docker, linux, ubuntu"] 6 [menu.main] 7 parent = "smn_cloud" 8 +++ 9 <![end-metadata]--> 10 11 # Rackspace Cloud 12 13 Installing Docker on Ubuntu provided by Rackspace is pretty 14 straightforward, and you should mostly be able to follow the 15 [*Ubuntu*](ubuntulinux.md#ubuntu-linux) installation guide. 16 17 **However, there is one caveat:** 18 19 If you are using any Linux not already shipping with the 3.8 kernel you 20 will need to install it. And this is a little more difficult on 21 Rackspace. 22 23 Rackspace boots their servers using grub's `menu.lst` 24 and does not like non `virtual` packages (e.g., Xen compatible) 25 kernels there, although they do work. This results in 26 `update-grub` not having the expected result, and 27 you will need to set the kernel manually. 28 29 **Do not attempt this on a production machine!** 30 31 # update apt 32 $ apt-get update 33 34 # install the new kernel 35 $ apt-get install linux-generic-lts-raring 36 37 Great, now you have the kernel installed in `/boot/`, next you need to 38 make it boot next time. 39 40 # find the exact names 41 $ find /boot/ -name '*3.8*' 42 43 # this should return some results 44 45 Now you need to manually edit `/boot/grub/menu.lst`, 46 you will find a section at the bottom with the existing options. Copy 47 the top one and substitute the new kernel into that. Make sure the new 48 kernel is on top, and double check the kernel and initrd lines point to 49 the right files. 50 51 Take special care to double check the kernel and initrd entries. 52 53 # now edit /boot/grub/menu.lst 54 $ vi /boot/grub/menu.lst 55 56 It will probably look something like this: 57 58 ## ## End Default Options ## 59 60 title Ubuntu 12.04.2 LTS, kernel 3.8.x generic 61 root (hd0) 62 kernel /boot/vmlinuz-3.8.0-19-generic root=/dev/xvda1 ro quiet splash console=hvc0 63 initrd /boot/initrd.img-3.8.0-19-generic 64 65 title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual 66 root (hd0) 67 kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash console=hvc0 68 initrd /boot/initrd.img-3.2.0-38-virtual 69 70 title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual (recovery mode) 71 root (hd0) 72 kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash single 73 initrd /boot/initrd.img-3.2.0-38-virtual 74 75 Reboot the server (either via command line or console) 76 77 # reboot 78 79 Verify the kernel was updated 80 81 $ uname -a 82 # Linux docker-12-04 3.8.0-19-generic #30~precise1-Ubuntu SMP Wed May 1 22:26:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 83 84 # nice! 3.8. 85 86 Now you can finish with the [*Ubuntu*](ubuntulinux.md#ubuntu-linux) 87 instructions.