Docker in Action

Jeff NickoloffPublishing House of Electronics Industry2017

Rating 3.5
Chapters
15
ISBN
9787121303067

Tags

Computing Software TutorialsGeneral Computing Cloud ComputingSecurity PerimeterContainer TechnologyMicroservicesOperating SystemVirtualizationSoftware InstallationField CasesPractical Guide

Summary

This is the Chinese translation of Docker in Action, published by Manning and written by Jeff Nickoloff, translated by Hu Zhen, Yang Runqing, and Huang Shuai. The book is built around how to create, deploy, and manage applications running in Docker containers: it first explains Docker's virtualization model, then shows how containers use Linux kernel features to run programs safely, isolate resources, control permissions, and limit risk. The book has three parts. Part 1, Keeping a Clean Machine (Chapters 1–6), introduces the basic concepts and uses of containers, including running software in containers, simplifying software installation, persistent storage and volumes, network access, and the security boundary created by isolation. Part 2, Packaging Software for Distribution (Chapters 7–10), covers how to package software into images, automate builds and set advanced image options, distribute images through public and private registries, and run a custom registry. Part 3, Multi-Container and Multi-Host Environments (Chapters 11–12), shows how to define a multi-container environment declaratively with Docker Compose and how to manage clusters with Docker Machine and Swarm. Drawing on concrete cases such as monitoring servers and database storage volumes, and illustrated throughout, the book offers hands-on exercises that progress from a single machine to a cluster.

Editor's review

Manning 的 “in Action” 系列素以“边做边学”著称,这本书是该系列中少数系统讲 Docker 的作品之一。它的难得之处在于没有停在“敲几条 docker run”的层面:先用一整部分解释容器究竟是什么、和虚拟化差在哪里、命名空间与 cgroups 怎样划分隔离与权限,再进入镜像构建与分发的完整链路,最后才把读者带到 Compose 与 Swarm 的多容器、多主机场景。这种由原理到打包、由单机到集群的递进顺序,让读者读完不是记住一堆命令,而是建立起一整套容器化的思维方式。案例选择也贴近实际,监控服务和数据库持久化存储都是生产环境里的常见难题。需要提醒的是,原书基于 Docker 早期版本写作,如今 Docker 版本、Swarm 的定位以及 Kubernetes 主导编排的格局都已变化,部分命令与工具章节需要对照官方文档更新;但资源隔离、镜像分层、卷与网络这些底层逻辑仍不过时。适合作为理解容器原理的第一本系统读物,再配合新版工具链动手练习。

Who it's for

A good fit for

Not a good fit for

Reading tips

  1. 先通读第 1 部分,把命名空间、cgroups、卷与网络搞懂,后面的镜像与编排才不悬空。
  2. 边读边在本地 Linux 主机或虚拟机里复现书中命令与案例,特别是卷挂载和端口映射部分。
  3. 读到第 11、12 章时,用当前版本的 Docker Compose 实践,并对照官方文档核对已变化的命令和工具。
  4. 读完可再对照第 2 版或官方文档补充集群与云上部署的新进展,形成较完整的知识链路。

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. Part 1 Keeping a Clean Machine
  2. Chapter 1 Welcome to the World of Docker
  3. Chapter 2 Running Software in Containers
  4. Chapter 3 Simplifying Software Installation
  5. Chapter 4 Persistent Storage and Sharing State Across Volumes
  6. Chapter 5 Network Access
  7. Chapter 6 Isolation—Limiting Danger
  8. Part 2 Image Publishing: How to Package Software
  9. Chapter 7 Packaging Software in Images
  10. Chapter 8 Build Automation and Advanced Image Settings
  11. Chapter 9 Public and Private Software Distribution
  12. Chapter 10 Running a Custom Registry
  13. Part 3 Multi-Container and Multi-Host Environments
  14. Chapter 11 Declarative Environments with Docker Compose
  15. Chapter 12 Docker Machine and Swarm Clusters

FAQ

这本书和《Docker实战(第2版)》是同一本书吗? 是同一本原著的不同版本。第 1 版由电子工业出版社 2017 年出版,ISBN 9787121303067,译者为胡震、杨润青、黄帅;第 2 版由清华大学出版社 2021 年出版,ISBN 9787302574675,新增作者斯蒂芬·库恩斯利,译者为耿苏宁,并增加了集群与编排方面的新章节。
没有容器基础能直接读吗? 可以,但需要基本的 Linux 命令行能力,比如文件操作、进程、端口与 shell 脚本。本书第 1 章从“什么是容器”“容器不是虚拟化”讲起,适合零容器基础的读者;如果连 Linux 命令都不熟悉,建议先补一段 Linux 入门。
书里的内容是不是已经过时了? 原书写于 Docker 早期版本时期,具体命令版本、Docker Machine 以及 Swarm 的地位已有变化,当前集群编排更多采用 Kubernetes。但资源隔离、权限控制、镜像分层构建、卷与网络这些核心机制依然有效,仍值得作为原理读物,实践时配合当前官方文档。
书里讲的 Swarm 还需要学吗? Swarm 仍存在于 Docker 生态中,适合小规模和轻量场景,但业界主流编排已转向 Kubernetes。读时可重点理解“声明式集群编排”这一思路,把 Swarm 当作理解编排概念的入门样本即可。
读这本书需要准备什么环境? 准备一台 Linux 机器或虚拟机,安装 Docker Engine,最好再有一个 Docker Hub 账号用于练习镜像推送与拉取。第 11、12 章涉及多容器与多主机,可准备多台虚拟机或云主机用于演练。

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.

About the author

Jeff Nickoloff Author

Jeff Nickoloff is the author of Docker in Practice. Publicly available information about him is limited: his nationality, dates of birth and death, and personal background are not clearly documented. Judging from the library's records, his work is classified under computing, general computing, and software learning, indicating that his writing addresses the practical application of container technology. On the evidence available, Docker in Practice is the only work of his held in the collection, and it deals with the use of Docker as a hands-on technical book. Such books are typically aimed at developers and operations staff, helping readers move from basic concepts to actual deployment, and therefore offer some reference value for readers in the software-learning category. Given the limited material, this introduction makes no inferences about the author's academic background, professional identity, or writing career, and confines itself to the verifiable information about his book.