mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 12:21:17 +00:00
style(docs): standardize heading formats and numbering
- Enforce Level 1-3 structural numbering based on SUMMARY.md hierarchy - Remove structural numbering from Level 4+ headings - Eliminate single child headings by converting to bold text - Auto-inject summary text for headings with multiple children missing intro text - Exclude Appendix chapters from structural numbering - Avoid modifying code block contents - Add script to detect non-standard English usage in headers
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
## 挂载主机目录
|
||||
## 8.3 挂载主机目录
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
### 什么是绑定挂载
|
||||
### 8.3.1 什么是绑定挂载
|
||||
|
||||
Bind Mount (绑定挂载) 将 **宿主机的目录或文件** 直接挂载到容器中。容器可以读写宿主机的文件系统。
|
||||
|
||||
@@ -23,7 +23,7 @@ flowchart LR
|
||||
|
||||
---
|
||||
|
||||
### Bind Mount vs Volume
|
||||
### 8.3.2 Bind Mount vs Volume
|
||||
|
||||
相关信息如下表:
|
||||
|
||||
@@ -55,7 +55,7 @@ flowchart LR
|
||||
|
||||
---
|
||||
|
||||
### 基本语法
|
||||
### 8.3.3 基本语法
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
@@ -91,7 +91,7 @@ $ docker run -d \
|
||||
|
||||
---
|
||||
|
||||
### 使用场景
|
||||
### 8.3.4 使用场景
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
@@ -153,7 +153,7 @@ $ docker run --rm -it \
|
||||
|
||||
---
|
||||
|
||||
### 只读挂载
|
||||
### 8.3.5 只读挂载
|
||||
|
||||
防止容器修改宿主机文件:
|
||||
|
||||
@@ -180,7 +180,7 @@ touch: /app/config/new.txt: Read-only file system
|
||||
|
||||
---
|
||||
|
||||
### 挂载单个文件
|
||||
### 8.3.6 挂载单个文件
|
||||
|
||||
运行以下命令:
|
||||
|
||||
@@ -202,7 +202,7 @@ $ docker run -d \
|
||||
|
||||
---
|
||||
|
||||
### 查看挂载信息
|
||||
### 8.3.7 查看挂载信息
|
||||
|
||||
运行以下命令:
|
||||
|
||||
@@ -235,7 +235,7 @@ $ docker inspect mycontainer --format '{{json .Mounts}}' | jq
|
||||
|
||||
---
|
||||
|
||||
### 常见问题
|
||||
### 8.3.8 常见问题
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
@@ -287,7 +287,7 @@ $ docker run -v /host/path:/container/path:cached myapp
|
||||
|
||||
---
|
||||
|
||||
### 最佳实践
|
||||
### 8.3.9 最佳实践
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user