The First Book of Docker cover

The First Book of Docker

No rating yet
Chapters
9
Series
The First Book of Docker
ISBN
9787115377333

Tags

Summary

The First Book of Docker was one of the earliest systematic technical primers on Docker in the Chinese-speaking world, translated from the book of the same name by Australian technical author James Turnbull. The author, a former Vice President of Services and Support at Docker, had long written about system administration, configuration management, and operations tooling. The book therefore reflects an operations-oriented view of container practice: rather than piling up abstractions, it unfolds step by step around real scenarios. The content broadly follows a sequence of understanding, installing, getting started, advancing, and putting into practice. It first explains what Docker is, what components it comprises, and what problems it solves; then covers installing and configuring Docker on Linux; and then moves into core operations such as images, containers, and repositories, including pulling, building, and layer management of images, and everyday actions such as creating, starting, and stopping containers and viewing logs. On that foundation, the book places Docker within the development workflow: how to use containers to build reproducible test environments for new projects, how to integrate Docker into continuous integration workflows such as Jenkins, how to dockerize existing applications, and how to orchestrate multiple containers into a complete, runnable application stack. A sample application built on Node.js and Redis runs through the book, demonstrating the progression from a single container to multiple containers, and the final chapters introduce Docker's remote API and ideas for extension, helping readers understand the tooling and process issues they will encounter as containers move from testing to production. Because the Chinese edition was published some time ago, some commands and orchestration tools in the book (such as the early orchestration chapter using Fig, and older installation methods) have changed considerably today. Readers should focus on the conceptual model and workflow thinking, and refer to current official documentation for specific commands.

Editor's review

这是一本“名字很朴素,内容很实在”的书。它在 Docker 刚刚被国内开发者接受的阶段,把容器从命令行玩具变成了可落地的工作流:装环境、做镜像、跑测试、接 CI、拼应用栈,一条线走完。 本书的第一层价值是入门路径清晰。它没有一上来就抛出大量抽象概念,而是先让读者把 Docker 装起来、把容器跑起来,再回头解释镜像分层、仓库、数据卷这些机制。对刚接触容器的人来说,这种“先动手、后理解”的顺序更容易建立起稳定的直觉。 第二层价值在“流程”而不在“命令”。第5到第7章把 Docker 放进测试环境搭建、持续集成和服务编排的真实场景里,用 Node.js 加 Redis 的示例展示应用如何从单容器长成多容器应用栈。这类内容在很多入门书里被省略,却恰恰是读者从“会敲命令”走到“能在项目里使用”的关键。 需要坦白提醒的是版本时效性。中文初版出版于 2015 年前后,书中的安装步骤、编排工具(Fig)、部分 API 用法与今天的主流做法已有差异。把它当作理解容器思维和工作流的“地基书”,同时用官方文档补上最新用法,是最稳妥的读法。

Who it's for

A good fit for

  • 刚接触 Docker、希望从零建立完整容器概念的开发者与运维人员
  • 需要把现有应用打包成镜像,并接入 CI/CD 流程的工程师
  • 负责搭建可复现测试环境、被“环境不一致”困扰的测试与运维同学
  • 计算机专业学生,想通过案例理解容器与传统虚拟化的区别

Not a good fit for

  • 只想查最新 Docker 命令与 Compose 语法细节、追求即时可用速查手册的读者
  • 已熟练使用容器与 Kubernetes,寻求生产级集群、网络与安全深度内容的资深工程师
  • 需要容器编排、服务网格等较新生态系统讲解的读者

Reading tips

  1. 按章节顺序动手实践,边读边在虚拟机或云主机上搭建 Linux + Docker 环境,避免只看不练。
  2. 第3、4章是基础,务必亲手完成镜像构建与容器生命周期操作,再进入流程章节。
  3. 阅读第7章编排时,把书中示例与现代 Compose 写法对照,理解“编排”要解决的问题而非死记命令。
  4. 遇到安装步骤与 API 用法,以 Docker 官方文档为准做实时校验,把本书当作概念与流程地图。

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 Orchestrating Docker with Fig
  8. Chapter 8 Using the Docker API
  9. Chapter 9 Getting Help and Improving Docker

FAQ

这本书现在还适合入门 Docker 吗?
适合作为概念与工作流的入门读本。它的价值在于讲清镜像、容器、仓库和开发流程的关系,但安装方式、编排工具与部分命令已过时,实践时需对照官方文档更新。
读这本书需要什么前置基础?
需要基本的 Linux 命令行操作能力,如文件、权限、进程和网络的基本概念;了解一门后端语言(书例以 Node.js 为主)会更容易跟上示例,但不要求精通。
书里讲的 Fig 是什么,和今天的工具什么关系?
Fig 是早期用于定义和运行多容器应用的工具,后来被 Docker 收购并演进为 Docker Compose。理解书中的编排示例,有助于看懂 Compose 的设计思路。
初版和修订版有什么区别?
初版由人民邮电出版社于 2014 年末至 2015 年出版,ISBN 9787115377333;2016 年推出修订版,ISBN 9787115419330,内容有更新,编排章节改为 Docker 编配与服务发现。

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.

Top rated in the same category