The First Book of Docker (Revised Edition) cover

The First Book of Docker (Revised Edition)

Rating 4.0
Word count
370K words
Chapters
9
ISBN
9787115419330

Tags

Summary

This is the Chinese revised edition of The First Book of Docker, written by James Turnbull, former Vice President of Services and Support at Docker, and translated by Li Zhaohai, Liu Bin, and Ju Zhen. Docker is an open-source application container engine: developers can package an application and its dependencies into a portable container and then publish it to run on any mainstream Linux machine, gaining lightweight, reproducible runtime environments. The revised edition updates the content for Docker 1.9 and later, with the main thread guiding readers through the complete flow from installation, deployment, and management to scaling, covering the development life cycle from testing to production. The book starts with the basics of Docker and its core components (client and server, images, Registry, containers), then moves into practice: using Docker to set up test environments for new projects; integrating Docker into continuous integration workflows; using containers to build application services and platforms; operating programmatically through the Docker API; and orchestration and service discovery in multi-host scenarios. It also discusses where Docker is and is not suitable, helping readers judge when to use a containerized approach. The book is not long and contains many code examples, leaning toward hands-on practice; it works well as a first reference for introducing containerization within a team.

Editor's review

Docker 生态变化极快,很多容器书刚出版就显得过时。这本《第一本Docker书(修订版)》的价值不在于覆盖最新特性,而在于把容器技术的基本概念讲清楚了:镜像与容器的关系、分层构建的思路、Registry 的用法、容器和虚拟机的边界,以及如何把容器接进 CI 工作流。这些是理解后续 Kubernetes、Compose 等工具的前提,不会因为版本迭代而失效。 作者曾任 Docker 公司服务与支持副总裁,是长期做运维与开源工具的技术作者,写书的风格务实、不炫技。全书 9 章、264 页、约 37 万字,示例密度高,两三天就能通读一遍,边读边敲能很快建立直观印象。第 5 章的测试环境搭建和第 7 章的编配与服务发现尤其值得细读,前者能立刻用在自己项目里,后者是理解容器编排的入口。 需要提醒的是,本书基于 Docker 1.9 及以上版本,部分命令行参数和示例在今天的新版本上可能需要调整,作者通过 GitHub 持续维护代码。把它当作入门教材,而不是手册,配合官方文档一起读效果最好。

Who it's for

A good fit for

  • 有 Linux 基础、想系统入门容器技术的后端开发者
  • 需要在项目中引入 Docker 的运维与 DevOps 工程师
  • 想把现有应用容器化、搭建测试与 CI 环境的开发者
  • 计算机专业学生或培训学员,作为容器技术的第一本教材

Not a good fit for

  • 已熟练使用 Docker、想深入学习 Kubernetes 编排的读者
  • 只关心最新版本特性与命令速查的读者,本书基于较早版本
  • 完全没有命令行与 Linux 基础的纯初学者,阅读门槛偏高

Reading tips

  1. 先按章节顺序读完第 1—4 章,把镜像、容器、Registry 三个概念吃透再往下走。
  2. 第 5—7 章务必动手实践,建议准备一台可随时重装的 Linux 虚拟机或云主机。
  3. 遇到命令报错时先查官方文档与作者 GitHub 上的示例更新,不必逐字照搬书中参数。
  4. 读完第 8 章 API 后,可尝试用脚本实现一次自动化构建与部署,巩固理解。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Introduction
  2. Chapter 2 Installing Docker
  3. Chapter 3 Getting Started with Docker
  4. Chapter 4 Using Docker Images and Repositories
  5. Chapter 5 Using Docker in Testing
  6. Chapter 6 Building Services with Docker
  7. Chapter 7 Docker Orchestration and Service Discovery
  8. Chapter 8 Using the Docker API
  9. Chapter 9 Getting Help and Improving Docker

FAQ

这本书和 2014 年的初版有什么区别?
修订版于 2016 年 4 月出版,针对 Docker 1.9 及以上版本更新了内容,页数由初版的 252 页增至 264 页,ISBN 也不同(修订版为 9787115419330)。如果只想买一本,选修订版。
书中的示例命令现在还能运行吗?
大部分核心概念和思路仍适用,但 Docker 迭代很快,部分命令行参数、镜像名称和 API 写法可能已变化。作者在 GitHub 上维护示例代码,建议对照最新官方文档调整后再执行。
零基础可以直接读这本书吗?
需要一定的 Linux 命令行基础,至少会使用 ssh、包管理器和编辑配置文件。如果完全没有接触过 Linux,建议先补基础,否则安装和调试环节会比较吃力。
读完这本书能应付工作里的容器化需求吗?
能覆盖单机容器化、镜像构建、测试环境搭建和基础编配。但生产环境的集群编排、网络与存储方案还需要继续学习 Kubernetes、Compose 等专门资料。
这本书适合作为教材或培训用书吗?
适合。全书 9 章结构清晰、篇幅适中、示例丰富,很多培训课程把它列为容器技术入门参考书。配合实验环境布置课后练习效果更好。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category