Fix missing links

This commit is contained in:
Baohua Yang
2026-02-22 13:40:20 -08:00
parent 92ea9623b2
commit e57704271d
54 changed files with 228 additions and 224 deletions

View File

@@ -225,7 +225,7 @@ CMD ["node", "server.js"]
本节涵盖了相关内容与详细描述主要探讨以下几个方面
#### 1始终使用非 root 用户
#### 1. 始终使用非 root 用户
如下代码块所示展示了相关示例
@@ -241,7 +241,7 @@ CMD ["myapp"]
CMD ["myapp"] # 以 root 运行
```
#### 2使用固定 UID/GID
#### 2. 使用固定 UID/GID
便于在宿主机和容器间共享文件
@@ -253,7 +253,7 @@ RUN addgroup -g 1000 -S appgroup && \
USER 1000:1000
```
#### 3多阶段构建中的 USER
#### 3. 多阶段构建中的 USER
如下代码块所示展示了相关示例