-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
107 lines (85 loc) · 4.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="Docker-source-analysis : docker源码分析">
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<title>Docker-source-analysis</title>
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/TheBeeMan/docker-source-analysis">View on GitHub</a>
<h1 id="project_title">Docker-source-analysis</h1>
<h2 id="project_tagline">docker源码分析</h2>
<section id="downloads">
<a class="zip_download_link" href="https://github.com/TheBeeMan/docker-source-analysis/zipball/master">Download this project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/TheBeeMan/docker-source-analysis/tarball/master">Download this project as a tar.gz file</a>
</section>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h1>
<a id="docker-源码解析" class="anchor" href="#docker-%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>《docker 源码解析》</h1>
<hr>
<h2>
<a id="00--序" class="anchor" href="#00--%E5%BA%8F" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>00 序</h2>
<hr>
<p>docker 是Linux OS虚拟化容器,原生环境是Linux 64位。具有快速开发、运维,以及部署的特点,它使SaaS层服务对系统和中间层的依赖性变弱,用户能够基于docker官方的基础镜像私人定制Dockerfile文件,搭建和配置特定服务,创建过程全都自动化实现。</p>
<p>docker 基于c/s模式,首先启动dockerd的服务端,并监听特定的unix socket或tcp socket,远程客户端发送请求到服务端的网络接口,然后服务端通过router实例对请求事件进行匹配和分发,再进入相应的hander处理流程,最后将执行结果回传给客户端。</p>
<p>本文就docker启动过程,Router路由表,Docker API等方面进行详细分析。</p>
<h2>
<a id="01--目录" class="anchor" href="#01--%E7%9B%AE%E5%BD%95" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>01 <i></i> 目录</h2>
<table>
<thead>
<tr>
<th align="center">章节</th>
<th align="center">标题</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">第一章</td>
<td align="center"><a href="https://github.com/TheBeeMan/docker-source-analysize/blob/master/charter%201.md">docker daemon 启动过程</a></td>
</tr>
<tr>
<td align="center">第二章</td>
<td align="center"><a href="https://github.com/TheBeeMan/docker-source-analysize/blob/master/chapter%202.md">router mapping 路由表</a></td>
</tr>
<tr>
<td align="center">第三章</td>
<td align="center">Docker API 应用示例</td>
</tr>
<tr>
<td align="center">第四章</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">第五章</td>
<td align="center"></td>
</tr>
</tbody>
</table>
<h2>
<a id="02--参考" class="anchor" href="#02--%E5%8F%82%E8%80%83" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>02 <i></i> 参考</h2>
<ul>
<li><p>[ ] 《第一本Docker书》(James Turnbull 著)</p></li>
<li><p>[ ] 《Docker技术入门与实践》(杨保华 著)</p></li>
<li><p>[ ] 《Docker进阶与实战》(华为Docker实践小组 著)</p></li>
<li><p>[ ] 《Docker源码分析》(孙宏亮 著)</p></li>
</ul>
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">Docker-source-analysis maintained by <a href="https://github.com/TheBeeMan">TheBeeMan</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>