添加文档

This commit is contained in:
2026-11-06 17:54:47 +08:00
parent d118fe4ee0
commit ed731c4ad6
2 changed files with 196 additions and 53 deletions

View File

@@ -1,6 +1,27 @@
# runtime-endpoint:crictl 连接的运行时服务地址
# unix:///run/containerd/containerd.sock 表示通过本机 socket 连接 containerd 的 CRI 服务
runtime-endpoint: unix:///run/containerd/containerd.sock
# image-endpoint:crictl 连接的镜像服务地址
# 通常与 runtime-endpoint 相同,因为 containerd 的 CRI 服务同时提供运行时和镜像服务
image-endpoint: unix:///run/containerd/containerd.sock
# timeout:crictl 请求超时时间,单位是秒
# 10 表示最多等 10 秒,超时就报错;不是布尔值,按需改数字
timeout: 10
# debug:是否输出调试日志
# debug: true = 输出更多调试信息,适合排错
# debug: false = 正常输出,不打印调试日志
debug: false
pull-image-on-create: false
# pull-image-on-create:crictl create 创建容器时,本地缺镜像是否自动拉取
# pull-image-on-create: true = 缺镜像时自动拉取,再创建容器
# pull-image-on-create: false = 缺镜像时不自动拉取,直接报错
pull-image-on-create: true
# disable-pull-on-run:crictl run 运行容器时,是否禁止自动拉取缺失镜像
# 注意这个参数名字是“禁止拉取”,方向与上面相反
# disable-pull-on-run: true = 禁止自动拉取,缺镜像直接报错
# disable-pull-on-run: false = 不禁止自动拉取,缺镜像时允许自动拉取
disable-pull-on-run: false