Add blank lines before lists per CommonMark

This commit is contained in:
yeasy
2026-04-25 15:13:27 +00:00
parent 9abc1cbb69
commit 515ba9f64a
27 changed files with 62 additions and 0 deletions
+2
View File
@@ -28,6 +28,7 @@ RUN ["executable", "param1", "param2"]
```docker
RUN apt-get update
```
- **特点**默认通过 `/bin/sh -c` 执行
- **优势**可以使用环境变量管道重定向等 Shell 特性
- **示例**
@@ -40,6 +41,7 @@ RUN apt-get update
```docker
RUN ["apt-get", "update"]
```
- **特点**直接调用可执行文件不经过 Shell
- **优势**避免 Shell 字符串解析问题适用于参数中包含特殊字符的情况
- **注意**无法使用 `$VAR` 环境变量替换 (除非显式调用 shell)