forked from widuu/chinese_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
124 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Amazon EC2 | ||
=== | ||
|
||
这里有几种方法可以在AWS EC2上安装docker: | ||
|
||
- Amazon QuickStart (Release Candidate - March 2014) or | ||
- Amazon QuickStart or | ||
- Standard Ubuntu Installation | ||
|
||
当然首先你要先创建一个AWS的帐号。 | ||
|
||
Amazon QuickStart | ||
|
||
+ 选择一个镜像。 | ||
+ 在你的AWS控制台选择[Create Instance Wizard](https://console.aws.amazon.com/ec2/v2/home?#LaunchInstanceWizard: "Create Instance Wizard")菜单。 | ||
+ 点击`Select`按钮选择64bit的Ubuntu镜像,举个例子:Ubuntu Server 12.04.3 LTS | ||
+ 作为测试你可以使用默认的(免费主机)`t1.micro`创建实例 (更多[价格](http://aws.amazon.com/ec2/pricing/)信息). | ||
+ 点击`Next: Configure Instance Details`按钮在底部右侧。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Gentoo | ||
=== | ||
|
||
在gentoo linux 上安装docker 可以通过以下两种方式的任一种实现。 | ||
第一种也是最好的一种就是如果你正在寻找一种稳定的方式就在portage tree上直接安装官方的app-emulation/docker package | ||
|
||
如果你正在寻找a -bin ebuild, a live ebuild, or bleeding edge ebuild changes/fixes, | ||
第二种安装方式是用https://github.com/tianon/docker-overlay提供的overlay,它可以添加使用app-portage/layman,最准确,最新安装和使用的overlay的文档可以在the overlay README.中找到. | ||
|
||
请记住有时候官方最新版本和overlay是不一致的,并且在overlay和portage tree中的版本都不是一致的,请耐心等待,最新版本会很快更新的。 | ||
|
||
###安装 | ||
|
||
软件包需要正确引入所有必须的依赖关系,并且提示所有需要的内核选项。0.7+的ebuilds包含use标记会提示依赖关系和主要驱动程序,"device-mapper" use标记是默认启动的,这是最简单的安装路径 | ||
|
||
$ sudo emerge -av app-emulation/docker | ||
|
||
如果从ebuild或者生成的二进制文件出现任何问题,包括特别是缺少内核配置标记/或依赖关系,在docker-overlary仓库提交一个问题或者ping tianon 在 #docker IRC 信道上的 freenode 网络。 | ||
|
||
###Starting Docker | ||
|
||
确保您正在运行的内核,包括所有必要的模块和/或配置 LXC ((可选) device-mapper和 AUFS,取决于你决定要使用的存储驱动程序)。 | ||
|
||
###OpenRC | ||
|
||
启动docker进程: | ||
|
||
$ sudo /etc/init.d/docker start | ||
|
||
开机启动: | ||
|
||
$ sudo rc-update add docker default | ||
|
||
###systemd | ||
|
||
启动docker进程: | ||
|
||
$ sudo systemctl start docker.service | ||
|
||
开机启动: | ||
|
||
$ sudo systemctl enable docker.service* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Rackspace Cloud | ||
=== | ||
|
||
由Rackspace提供的ubuntu安装docker是非常简单的,你应该能够大多按照[ubuntu](../installation/ubuntu.md "ubuntu")的安装指南。 | ||
|
||
不过,有一点你需要注意的: | ||
|
||
如果你使用的任何linux系统,没有运行3.8内核你必须安装它,这个在Rackspace是有些困难的。 | ||
|
||
Rackspace boots它们的服务器使用的是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文档安装](../installation/ubuntu.md) |