github.com/feiyang21687/docker@v1.5.0/docs/sources/installation/rackspace.md (about)

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