Add more content and fix format

This commit is contained in:
Baohua Yang
2026-02-25 21:06:21 -08:00
parent dd449bc84f
commit ecab788013
119 changed files with 566 additions and 496 deletions

View File

@@ -1,6 +1,6 @@
# 20.3 Alpine
## 20.2 Alpine
### 20.3.1 简介
### 20.2.1 简介
下图直观地展示了本节内容
@@ -26,7 +26,7 @@ ubuntu latest b39b81afc8ca 188.3 MB
centos latest 8efe422e6104 210 MB
```
### 20.3.2 获取并使用官方镜像
### 20.2.2 获取并使用官方镜像
由于镜像很小下载时间往往很短读者可以直接使用 `docker run` 指令直接运行一个 `Alpine` 容器并指定运行的 Linux 指令例如
@@ -35,7 +35,7 @@ $ docker run alpine echo '123'
123
```
### 20.3.3 迁移至 Alpine 基础镜像
### 20.2.3 迁移至 Alpine 基础镜像
目前大部分 Docker 官方镜像都已经支持 `Alpine` 作为基础镜像可以很容易进行迁移
@@ -65,7 +65,7 @@ RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories
&& apk add --no-cache <package>
```
### 20.3.4 相关资源
### 20.2.4 相关资源
* `Alpine` 官网https://www.alpinelinux.org/
* `Alpine` 官方仓库https://github.com/alpinelinux