书籍详情
Docker即学即用(第二版)
作者:Sean P.Kane,Karl Matthias
出版社:中国电力出版社
出版时间:2019-08-01
ISBN:9787519833442
定价:¥88.00
购买这本书可以去
内容简介
根据过去几年发生的重大变化,本书对示例和内容做了全面修订。本书作者新增了一章,是关于讨论Docker Compose的,此外还深入探讨了Docker Swarm模式,介绍了Kubernetes和AWS Fargate,并给出了优化Docker映像的方法。 \n? 学习如何使用Docker简化依赖管理和应用的部署流程。 \n? 着手使用Docke映像、容器和命令行工具。 \n? 使用实用的技术在生产环境中部署和测试Docker容器。 \n? 理解容器的组成和内部机理,便于调试。 \n? 在数据中心或云环境中大规模部署容器。 \n? 探讨一些Docker高级话题,包括部署工具、网络、编排、安全和配置。 \n\n
作者简介
Sean P. Kane是New Relic公司的首席网站可靠性工程师,长期从事生产运维,有很多不同的头衔,在很多行业中工作过。Karl Matthias是InVision公司的云平台服务经理,他做过开发者、分布式系统架构师、系统管理员和网络工程师,在初创公司和财富500强大企业都能见到他的身影。
目录
序 ..................................................................................1
前言 ...............................................................................3
第1 章 引言 ................................................................. 11
1.1 Docker 带来的希望 .......................................................................................... 11
1.2 Docker 不是什么..............................................................................................15
1.3 重要的术语 ......................................................................................................17
1.4 小结 .................................................................................................................17
第2 章 Docker 概览 ...................................................... 18
2.1 简化流程 ..........................................................................................................18
2.2 广泛支持和采用 ..............................................................................................21
2.3 架构 .................................................................................................................23
2.4 充分理解Docker..............................................................................................29
2.5 Docker 式工作流程 ..........................................................................................33
2.6 小结 .................................................................................................................40
第3 章 安装Docker ...................................................... 41
3.1 安装Docker 客户端 .........................................................................................42
3.2 安装Docker 服务器 .........................................................................................46
3.3 测试安装Docker..............................................................................................56
3.4 探索Docker 服务器 .........................................................................................57
3.5 小结 .................................................................................................................59
第4 章 使用Docker 映像 .............................................. 61
4.1 剖析Dockerfile 文件 .......................................................................................62
4.2 构建映像 ..........................................................................................................65
4.3 诊断构建问题 ..................................................................................................68
4.4 运行映像 ..........................................................................................................71
4.5 定制基础映像 ..................................................................................................73
4.6 存储映像 ..........................................................................................................73
4.7 高级构建技术 ..................................................................................................84
4.8 小结 .................................................................................................................98
第5 章 使用Docker 容器 .............................................. 99
5.1 容器是什么? ..................................................................................................99
5.2 创建容器 ........................................................................................................102
5.3 启动容器 ........................................................................................................ 119
5.4 自动重启容器 ................................................................................................120
5.5 停止容器 ........................................................................................................121
5.6 终止容器 ........................................................................................................122
5.7 暂停和恢复容器 ............................................................................................123
5.8 清理容器和映像 ............................................................................................124
5.9 Windows 容器 ................................................................................................127
5.10 小结 .............................................................................................................129
第6 章 探索Docker 的其他功能 .................................. 130
6.1 打印Docker 的版本号 ...................................................................................131
6.2 服务器信息 ....................................................................................................132
6.3 下载映像更新 ................................................................................................133
6.4 审查容器 ........................................................................................................134
6.5 在shell 中探索...............................................................................................136
6.6 返回结果 ........................................................................................................137
6.7 进入运行中的容器 .........................................................................................139
6.8 处理日志 ........................................................................................................145
6.9 监控Docker ...................................................................................................151
6.10 Prometheus 监控系统 ...................................................................................164
6.11 继续探索 ......................................................................................................168
6.12 小结 .............................................................................................................168
第7 章 调试容器 ......................................................... 169
7.1 列出进程 ........................................................................................................170
7.2 审查进程 ........................................................................................................174
7.3 管理进程 ........................................................................................................175
7.4 审查网络 ........................................................................................................178
7.5 查看映像历史 ................................................................................................181
7.6 审查容器 ........................................................................................................182
7.7 审查文件系统 ................................................................................................183
7.8 小结 ...............................................................................................................184
第8 章 探索Docker Compose .................................... 185
8.1 配置Docker Compose ....................................................................................186
8.2 启动服务 ........................................................................................................193
8.3 探索RocketChat ............................................................................................195
8.4 Docker Compose 命令 ....................................................................................205
8.5 小结 ...............................................................................................................207
第9 章 在生产环境中部署容器 .................................... 208
9.1 部署到生产环境 ............................................................................................208
9.2 Docker 在生产环境中扮演的角色 .................................................................209
9.3 Docker 和DevOps 流水作业 .........................................................................219
9.4 小结 ...............................................................................................................224
第10 章 大规模使用Docker ........................................ 225
10.1 Centurion .....................................................................................................226
10.2 Docker Swarm 模式 .....................................................................................232
10.3 Amazon ECS 和Fargate ...............................................................................242
10.4 Kubernetes ...................................................................................................256
10.5 小结 .............................................................................................................276
第11 章 高级主题 ....................................................... 278
11.1 容器详解 ......................................................................................................278
11.2 安全性 ..........................................................................................................288
11.3 高级配置 ......................................................................................................302
11.4 存储后端 ......................................................................................................309
11.5 Docker 的结构 .............................................................................................313
11.6 替换运行时 ..................................................................................................317
11.7 小结 .............................................................................................................323
第12 章 容器平台设计 ................................................ 324
12.1 应用的十二要素 ...........................................................................................325
12.2 响应式宣言 ..................................................................................................334
12.3 小结 .............................................................................................................335
第13 章 总结 ............................................................. 336
13.1 Docker 解决的问题 ......................................................................................336
13.2 Docker 式工作流程 ......................................................................................337
13.3 简化用于部署的构建产物 ............................................................................338
13.4 使用方式存储和获取映像 ....................................................................338
13.5 回报 .............................................................................................................339
13.6 结语 .............................................................................................................340
前言 ...............................................................................3
第1 章 引言 ................................................................. 11
1.1 Docker 带来的希望 .......................................................................................... 11
1.2 Docker 不是什么..............................................................................................15
1.3 重要的术语 ......................................................................................................17
1.4 小结 .................................................................................................................17
第2 章 Docker 概览 ...................................................... 18
2.1 简化流程 ..........................................................................................................18
2.2 广泛支持和采用 ..............................................................................................21
2.3 架构 .................................................................................................................23
2.4 充分理解Docker..............................................................................................29
2.5 Docker 式工作流程 ..........................................................................................33
2.6 小结 .................................................................................................................40
第3 章 安装Docker ...................................................... 41
3.1 安装Docker 客户端 .........................................................................................42
3.2 安装Docker 服务器 .........................................................................................46
3.3 测试安装Docker..............................................................................................56
3.4 探索Docker 服务器 .........................................................................................57
3.5 小结 .................................................................................................................59
第4 章 使用Docker 映像 .............................................. 61
4.1 剖析Dockerfile 文件 .......................................................................................62
4.2 构建映像 ..........................................................................................................65
4.3 诊断构建问题 ..................................................................................................68
4.4 运行映像 ..........................................................................................................71
4.5 定制基础映像 ..................................................................................................73
4.6 存储映像 ..........................................................................................................73
4.7 高级构建技术 ..................................................................................................84
4.8 小结 .................................................................................................................98
第5 章 使用Docker 容器 .............................................. 99
5.1 容器是什么? ..................................................................................................99
5.2 创建容器 ........................................................................................................102
5.3 启动容器 ........................................................................................................ 119
5.4 自动重启容器 ................................................................................................120
5.5 停止容器 ........................................................................................................121
5.6 终止容器 ........................................................................................................122
5.7 暂停和恢复容器 ............................................................................................123
5.8 清理容器和映像 ............................................................................................124
5.9 Windows 容器 ................................................................................................127
5.10 小结 .............................................................................................................129
第6 章 探索Docker 的其他功能 .................................. 130
6.1 打印Docker 的版本号 ...................................................................................131
6.2 服务器信息 ....................................................................................................132
6.3 下载映像更新 ................................................................................................133
6.4 审查容器 ........................................................................................................134
6.5 在shell 中探索...............................................................................................136
6.6 返回结果 ........................................................................................................137
6.7 进入运行中的容器 .........................................................................................139
6.8 处理日志 ........................................................................................................145
6.9 监控Docker ...................................................................................................151
6.10 Prometheus 监控系统 ...................................................................................164
6.11 继续探索 ......................................................................................................168
6.12 小结 .............................................................................................................168
第7 章 调试容器 ......................................................... 169
7.1 列出进程 ........................................................................................................170
7.2 审查进程 ........................................................................................................174
7.3 管理进程 ........................................................................................................175
7.4 审查网络 ........................................................................................................178
7.5 查看映像历史 ................................................................................................181
7.6 审查容器 ........................................................................................................182
7.7 审查文件系统 ................................................................................................183
7.8 小结 ...............................................................................................................184
第8 章 探索Docker Compose .................................... 185
8.1 配置Docker Compose ....................................................................................186
8.2 启动服务 ........................................................................................................193
8.3 探索RocketChat ............................................................................................195
8.4 Docker Compose 命令 ....................................................................................205
8.5 小结 ...............................................................................................................207
第9 章 在生产环境中部署容器 .................................... 208
9.1 部署到生产环境 ............................................................................................208
9.2 Docker 在生产环境中扮演的角色 .................................................................209
9.3 Docker 和DevOps 流水作业 .........................................................................219
9.4 小结 ...............................................................................................................224
第10 章 大规模使用Docker ........................................ 225
10.1 Centurion .....................................................................................................226
10.2 Docker Swarm 模式 .....................................................................................232
10.3 Amazon ECS 和Fargate ...............................................................................242
10.4 Kubernetes ...................................................................................................256
10.5 小结 .............................................................................................................276
第11 章 高级主题 ....................................................... 278
11.1 容器详解 ......................................................................................................278
11.2 安全性 ..........................................................................................................288
11.3 高级配置 ......................................................................................................302
11.4 存储后端 ......................................................................................................309
11.5 Docker 的结构 .............................................................................................313
11.6 替换运行时 ..................................................................................................317
11.7 小结 .............................................................................................................323
第12 章 容器平台设计 ................................................ 324
12.1 应用的十二要素 ...........................................................................................325
12.2 响应式宣言 ..................................................................................................334
12.3 小结 .............................................................................................................335
第13 章 总结 ............................................................. 336
13.1 Docker 解决的问题 ......................................................................................336
13.2 Docker 式工作流程 ......................................................................................337
13.3 简化用于部署的构建产物 ............................................................................338
13.4 使用方式存储和获取映像 ....................................................................338
13.5 回报 .............................................................................................................339
13.6 结语 .............................................................................................................340
猜您喜欢