由 Rackspace 提供的 Ubuntu 安裝 Docker 是非常簡單的,你可以大多按照[Ubuntu](https://github.com/widuu/chinese_docker/blob/master/installation/ubuntu.md "Ubuntu")的安裝指南。
> **不過請注意:**
> 如果你使用的 Linux 發行版沒有運行 3.8 內核,你就必須升級內核,這個在 Rackspace 上是有些困難的。
Rackspace 使用 grub 的?`menu.lst`?啟動服務,雖然它們運行正常,但是并不像非虛擬軟件包(如xen兼容)內核那樣。所以你必須手動設置內核。
不要在上線部署的機器上嘗試這樣做:
~~~
# 更新apt
$ apt-get update
# 安裝新內核
$ apt-get install linux-generic-lts-raring
~~~
非常好,現在你已經將內核安裝到?`/boot/`?下,下一步你需要讓它在重新啟動后生效。
~~~
# find the exact names
$ find /boot/ -name '*3.8*'
# this should return some results
~~~
現在你需要手動編譯?`/boot/grub/menu.list`?,在底部有相關選項。復制和替換成新內核,確保新內核在最上邊,仔細檢查內核和 initrd 指向的文件是否正確。
要特別注意檢查內核和 initrd 條目。
~~~
# 現在編輯 /boot/grub/menu.lst
vi /boot/grub/menu.lst
~~~
這是配置好的樣子:
~~~
## ## End Default Options ##
title Ubuntu 12.04.2 LTS, kernel 3.8.x generic
root (hd0)
kernel /boot/vmlinuz-3.8.0-19-generic root=/dev/xvda1 ro quiet splash console=hvc0
initrd /boot/initrd.img-3.8.0-19-generic
title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual
root (hd0)
kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash console=hvc0
initrd /boot/initrd.img-3.2.0-38-virtual
title Ubuntu 12.04.2 LTS, kernel 3.2.0-38-virtual (recovery mode)
root (hd0)
kernel /boot/vmlinuz-3.2.0-38-virtual root=/dev/xvda1 ro quiet splash single
initrd /boot/initrd.img-3.2.0-38-virtual
~~~
重啟你的服務器(通過命令行或者控制臺):
~~~
reboot
~~~
驗證你的內核是否升級成功
~~~
$ uname -a
# 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
# nice! 3.8.
~~~
現在升級內核完成,更多信息查看[ubuntu文檔安裝](https://github.com/widuu/chinese_docker/blob/master/installation/ubuntu.md)
- 關于Docker
- 鏡像簡介
- 安裝篇
- Mac OS X
- Ubuntu
- Red Hat Enterprise Linux
- CentOS
- Debain
- Gentoo
- Google Cloud Platform
- Rackspace Cloud
- Amazon EC2
- IBM Softlayer
- Arch Linux
- FrugalWare
- Fedora
- openSUSE
- CRUX Linux
- Microsoft Windows
- Binaries
- 用戶指南
- 使用Docker Hub
- 在Docker中運行應用
- 使用容器
- 使用docker鏡像
- 連接容器
- 管理容器數據
- 使用Docker Hub
- Docker Hub
- 賬戶
- 存儲庫
- 自動構建
- 官方案例
- Docker中運行MongoDB
- Docker中運行Redis服務
- Docker中運行PostgreSQL
- Docker中運行Riak服務
- Docker中運行SSH進程服務
- Docker中運行CouchDB服務
- Docker中運行Apt-Cacher-ng服務