Docker: The Complete Guide cover

Docker: The Complete Guide

No rating yet
Word count
952 words
Chapters
20
ISBN
9787121282386

Tags

Summary

Docker: The Complete Guide is a systematic technical book on Docker container technology, published by Publishing House of Electronics Industry as part of the Broadview series. Taking the Docker open-source project as its subject, the book begins with the background behind container technology, tracing the lineage of early solutions such as LXC and AUFS and the origins of Docker, then discusses Docker's scope of application, its strengths and weaknesses, and the changes it may bring to cloud computing and application delivery. The fundamentals section covers installation and runtime configuration on Linux and Mac OS as well as in Windows environments via virtual machines, and explains common commands grouped by operation, networking, security, resources, the RESTful interface, and components; it then goes deeper into the implementation details of these commands, dissecting their operating mechanisms with reference to the source code. On the build side, the book explains the purpose and syntax of the Dockerfile and offers best practices and deployment cases for image building. The advanced section analyzes Docker's lifecycle, the relationship between the daemon and the CLI, entrypoints and namespace isolation, kernel mechanisms such as the filesystem and image management, and resource scheduling. The final part surveys the surrounding ecosystem and closes with production-validated case studies on the Amazon and CoreOS platforms. The book comprises five parts and fifteen chapters, balancing operational guidance with analysis of underlying principles.

Editor's review

很多讲Docker的书只教“怎么敲命令”,这本书的野心更大一些:它把命令背后的源码和内核机制也摊开来给你看。全书按“简介—基础—进阶—生态—案例”五篇推进,结构清晰,你可以把它当手册按需查阅,也可以从前到后完整读一遍。第5章把Docker的操作、网络、安全、资源、RESTful和组件命令分类汇总,第6章则逐条拆解这些命令的实现,两者对照着看收益最大。第7、8章的Dockerfile部分讲写法也讲坑,第10至12章的命名空间、文件系统和资源调度,则是从“会用”走向“懂原理”的关键。作者张涛有TIBCO中国研发中心平台与云中间件的开发背景,书中案例在Amazon和CoreOS上的部署都经过生产环境验证,比纯实验室演示更可靠。需要注意,本书基于2016年前后的Docker版本写作,今天的命令与生态已有较大变化,把它当作理解容器原理的地基来读,比当作最新操作手册更合适。

Who it's for

A good fit for

  • 有Linux基础、想系统掌握容器技术的后端开发人员
  • 从事运维与部署工作、需要理解镜像构建与资源调度的工程师
  • 准备把应用迁移到容器或云平台、需要参考落地案例的技术负责人
  • 想通过源码理解命名空间、文件系统等内核机制的进阶学习者

Not a good fit for

  • 完全没有Linux基础、连命令行都不熟悉的零基础读者
  • 只想快速查最新版Docker或Kubernetes命令的读者,本书内容已显陈旧

Reading tips

  1. 先通读第1至4章建立背景与环境,再按日常工作需要翻查第5章命令清单,不必逐条通读。
  2. 把第5章与第6章对照阅读:先动手执行命令,再看源码剖析,理解会比单纯记忆参数更牢固。
  3. 如果已有一定基础,可从第10至12章入手,先弄清命名空间、文件系统和资源调度,再回头补命令细节。
  4. 阅读时对照自己所装Docker版本的实际输出验证书中结论,遇到差异以版本差异而非书中错误来理解。

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 Introduction to Docker
  2. Chapter 1 The Past and Present of Docker: What Is LXC; Why Docker Chose AUFS; How Docker Came About
  3. Chapter 2 The State of Docker: Scope of Docker Applications; Strengths and Weaknesses of Docker
  4. Chapter 3 How Docker Will Change the Future
  5. Part 2 Docker Fundamentals
  6. Chapter 4 How to Install Docker: What to Know Before Installing; Installing Docker on Linux; Installing Docker on MAC/OS; How Windows Supports Docker; Installing Docker on Other Platforms
  7. Chapter 5 Basic Docker Commands: Operation Commands; Network Commands; Security Commands; Resource Commands; RESTful Commands; Component Commands
  8. Chapter 6 Anatomy of Docker Commands: Operation Commands; Network Commands; Security Commands; Resource Commands
  9. Chapter 7 Introduction to the Dockerfile: What the Dockerfile Is For; How to Write a Dockerfile
  10. Chapter 8 Dockerfile Best Practices
  11. Chapter 9 Docker Deployment Cases
  12. Part 3 Advanced Docker
  13. Chapter 10 Anatomy of Docker Operation: The Docker Lifecycle; Docker Daemon; Docker CLI
  14. Chapter 11 Docker Kernel Explained: Namespaces Behind Docker; Docker's Filesystem; Docker Image Management
  15. Chapter 12 Docker Resource Scheduling: How Docker Manages Resources; The Docker Resource Manager
  16. Part 4 The Docker Ecosystem
  17. Chapter 13 Docker's Cloud Ecosystem: Docker's Development Languages; Open-Source Components That Support Docker; How CoreOS, Vagrant, and Amazon Support Docker
  18. Part 5 Docker Cases
  19. Chapter 14 A Docker Deployment Case on Amazon
  20. Chapter 15 A Docker Deployment Case on CoreOS

FAQ

这本书需要什么基础才能读?
作者定位的读者是具备Linux基础知识的人,最好熟悉常见命令、进程与文件系统概念;有C或Java开发经验会更利于理解第6章的源码剖析部分。
内容是不是已经过时?
本书2016年出版,基于当时的Docker版本写作,随后的版本迭代和Docker与Kubernetes生态的变化已带来不少差异。命令细节和生态部分需结合新版文档,但容器原理、命名空间与镜像分层等内核章节仍有参考价值。
书里的案例能直接用在生产环境吗?
根据出版方介绍,书中部署实例均在生产环境中验证过,因此思路与配置可作为参考。但受版本影响,直接照搬前应更新镜像标签和配置项。
篇幅和章节是怎么安排的?
全书约95.2万字,五篇十五章,分简介、基础、进阶、生态、案例五部分。第4至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.

About the author

张涛 Author

Zhang Tao is an author with an unusually broad range, though public information about him is limited and his biographical details remain unclear. The collection holds twenty-eight of his works, spanning world history, foreign literature, education, applied psychology, medicine, and health. Cherry Blossoms and Beasts: Ueno Zoo at the Center of Empire reflects his careful attention to history and culture, while foreign literary works such as Lost Horizon suggest engagement with translation or compilation. Case-Based Interpretation of the Biology Curriculum Standards for Compulsory Education (2022 Edition) and The Art of Psychotherapy show his interest in educational practice and applied psychology, whereas medical case collections such as The Spleen and Stomach Theory: Applications and Innovations and Seeking Truth in Classical Formulas reveal a side devoted to clinical practice and scholarly organization in Chinese medicine. Health titles such as Extreme Fitness, and psychoanalytic studies such as The Mirror, the Father, the Woman and the Madman: Lacan's Psychoanalytic World, further widen the range. Overall, his writing combines popular knowledge with professional compilation, crossing many subjects and addressing different readerships.

More by the same author

Top rated in the same category