Files
docker_practice/README.md
T
yeasy 1c8f0dc14d chore: remove the remaining VuePress artifacts
Follows the devDependency removal. The build has been mdPress-only since
1.7.0 and nothing referenced these:

- .vuepress/ (config.js + .gitignore). The mirror it configured is still
  live, but no workflow in this repo builds or deploys it, so this was a
  recipe nobody ran. Local .vuepress/dist/ (400 files of Feb-2026 build
  output, never tracked) was removed from the working tree too — with its
  .gitignore gone it would otherwise have shown up as untracked noise.
- docker-compose.yml: the vuepress-offline service, plus the now-unused
  &mdpress-offline anchor that existed only to feed it.
- README: the 'docker run ... :vuepress' one-liner. That tag was last
  pushed 2022-06-25, so readers following it got a four-year-old snapshot
  of the book. 'mdpress serve' immediately above it still works.
- CODEOWNERS, .zhlintignore and check_project_rules.py entries for the
  deleted directory, and the check-link allowlist entry for the mirror
  (no content links to it).

The CHANGELOG entry recording the original CI removal is left alone — it
is history.

Verified: npm test passes (3 + 35), check_project_rules passes 202 files,
docker-compose.yml still parses with no dangling YAML aliases.
2026-07-22 22:51:34 -07:00

136 lines
6.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div align="center">
# Docker 从入门到实践
[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
[![GitHub stars](https://img.shields.io/github/stars/yeasy/docker_practice?style=social)](https://github.com/yeasy/docker_practice)
[![Release](https://img.shields.io/github/release/yeasy/docker_practice/all.svg)](https://github.com/yeasy/docker_practice/releases)
[![Online Reading](https://img.shields.io/badge/在线阅读-GitBook-brightgreen)](https://yeasy.gitbook.io/docker_practice)
[![PDF](https://img.shields.io/badge/PDF-下载-orange)](https://github.com/yeasy/docker_practice/releases/latest)
[![Based on Docker Engine v29.x](https://img.shields.io/badge/Based-Docker%20Engine%20v29.x-blue.svg)](https://docs.docker.com/engine/release-notes/)
> 从零开始系统掌握 Docker 容器技术的核心概念原理与实战技巧
<img src="cover.jpg" width="300" alt="Docker 从入门到实践封面">
</div>
---
## 关于本书
[Docker](https://www.docker.com) 是个划时代的开源项目,它彻底释放了计算虚拟化的威力,极大提高了应用的维护效率,降低了云计算应用开发的成本!使用 Docker,可以让应用的部署、测试和分发都变得前所未有的高效和轻松!
无论是应用开发者运维人员还是其他信息技术从业人员都有必要认识和掌握 Docker节约有限的生命
本书既适用于具备基础 Linux 知识的 Docker 初学者也希望可供理解原理和实现的高级用户参考同时书中给出的实践案例可供在进行实际部署时借鉴
## 内容特色
* **入门基础** 1 ~ 6 章为基础内容帮助深入理解 Docker 的基本概念 (镜像容器仓库) 和核心操作
* **进阶应用** 7 ~ 11 章涵盖 Dockerfile 指令详解数据与网络管理BuildxCompose 等高级配置和管理操作
* **深入原理** 12 ~ 17 章介绍其底层实现技术深入探讨容器编排体系 (KubernetesEtcd)并延伸涉及容器与云计算及其它关键生态项目 (Fedora CoreOSPodman )
* **实战扩展** 18 ~ 21 章重点讨论容器安全防护机制监控与日志聚合系统 (PrometheusELK)并展示操作系统CI/CD 自动化构建等典型实践案例
## 五分钟快速上手
5分钟运行第一个容器”——跟随以下步骤快速体验 Docker
1. **安装 Docker**第3章):根据操作系统完成 Docker 的安装与验证
2. **第一个容器**第1章 `1.1`):快速体验构建镜像与启动容器的完整流程
3. **交互式容器**第5章):执行 `docker run -it ubuntu bash`进入容器内部与系统交互
4. **镜像与仓库**第2章第4章第6章):理解核心概念并学会拉取使用与管理镜像和仓库
5. **自定义镜像**第7章):学习如何编写 Dockerfile 创建自己的镜像
## 学习路线图
```mermaid
graph LR
Start[Docker 学习入口] --> Ch1[第1章:Docker 简介]
Ch1 --> Role1["运维新手<br/>第1-6章"]
Ch1 --> Role2["开发者<br/>第1-8章 → 第11章"]
Ch1 --> Role3["DevOps 工程师<br/>第1-11章 → 第13-14章 → 第18-21章"]
Ch1 --> Role4["架构师<br/>第1-6章 → 第12-17章 → 第18-19章"]
Role1 --> End1["掌握基本操作"]
Role2 --> End2["构建与部署应用"]
Role3 --> End3["自动化与运维"]
Role4 --> End4["设计容器方案"]
```
| 读者角色 | 学习重点 | 核心成果 |
|---------|---------|---------|
| **运维新手** | 第1-6 | 掌握容器的基本概念与操作 |
| **开发者** | 第1-8 第11章 | 学会容器化应用的构建与部署 |
| **DevOps 工程师** | 第1-11 第13-14 第18-21 | 实现容器编排与自动化部署流程 |
| **架构师** | 第1-6 第12-17 第18-19 | 设计高可用高性能的容器基础设施 |
## 在线阅读
本书在线阅读可直接访问 [GitBook](https://yeasy.gitbook.io/docker_practice/)。也可访问 [GitHub 仓库目录](https://github.com/yeasy/docker_practice/blob/master/SUMMARY.md)。
## 下载离线版本
本书提供 PDF 版本供离线阅读可前往 [GitHub Releases](https://github.com/yeasy/docker_practice/releases/latest) 页面下载最新版本。
如需获取默认分支自动更新的预览版可直接下载 [docker_practice.pdf](https://github.com/yeasy/docker_practice/releases/download/preview-pdf/docker_practice.pdf)。该文件会随主线更新覆盖,不代表正式发布版本。
## 本地阅读
先安装 [mdPress](https://github.com/yeasy/mdpress)
```bash
brew tap yeasy/tap && brew install mdpress
mdpress serve
```
## 社区交流
- [GitHub Issues](https://github.com/yeasy/docker_practice/issues/new/choose)(内容错误、建议)
## 推荐阅读
本书是技术丛书的一部分以下书籍与本书形成互补
| 书名 | 与本书的关系 |
|------|------------|
| [前线部署工程实践指南](https://yeasy.gitbook.io/forward_deployed_engineering_guide/) | 讲容器、Kubernetes、GitOps、IaC、供应链、安全、观测与 SLO 如何组合成可交付、可审计、可运营的部署工程体系 |
| [智能体 Harness 工程指南](https://yeasy.gitbook.io/harness_engineering_guide) | Agent 基础设施中的容器化部署与隔离 |
| [大模型安全权威指南](https://yeasy.gitbook.io/ai_security_guide) | 容器安全与 AI 系统安全的交叉实践 |
| [区块链技术指南](https://yeasy.gitbook.io/blockchain_guide) | 区块链节点的容器化部署 |
## 参与贡献
欢迎[参与项目维护](CONTRIBUTING.md)
* [修订记录](CHANGELOG.md)
* [贡献者名单](https://github.com/yeasy/docker_practice/graphs/contributors)
## 进阶学习
[Docker 技术入门与实战][1]已更新到第 4 讲解最新容器技术栈知识欢迎大家阅读并反馈建议[京东图书][1] | [天猫图书](https://detail.tmall.com/item.htm?id=997383773726&skuId=6143496614475)
## 支持鼓励
欢迎鼓励项目一杯 coffee~
<p align="center">
<img width="200" src="_images/donate.jpeg">
</p>
## Star History
<p align="center">
<a href="https://star-history.com/#yeasy/docker_practice&Date">
<img src="https://api.star-history.com/svg?repos=yeasy/docker_practice&type=Date" alt="Star History Chart">
</a>
</p>
## 许可证
本书采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可证。
您可以自由分享和演绎但需署名非商业使用相同方式共享
[1]: https://item.jd.com/10200902362001.html