mountReadOnly 定义

要装载只读的卷,默认值为 false。

mountReadOnly:
  work: boolean # Mount the work directory as readonly.
  externals: boolean # Mount the externals directory as readonly.
  tools: boolean # Mount the tools directory as readonly.
  tasks: boolean # Mount the tasks directory as readonly.

注释

此定义是一个支持定义,不适用于直接在管道中使用。 本文提供了此支持类型的 YAML 语法,但不显示用法示例。 有关使用此支持类型的详细信息和示例,请参阅以下 引用此定义文章的定义

引用此定义的定义: jobs.job.containerresources.containers.container

性能

work 布尔
将工作目录装载为只读。

externals 布尔
以只读方式装载外部目录。

tools 布尔
以只读方式装载工具目录。

tasks 布尔
以只读方式装载任务目录。