VolumeDefinition interface
描述容器的卷配置
属性
bind | 装载的绑定选项 |
consistency | 卷的一致性 |
read |
指示是否将卷装载为 readOnly。 默认值为 false。 |
source | 装载的源。 对于绑定装载,这是主机路径。 |
target | 装载的目标。 对于绑定装载,这是容器中的路径。 |
tmpfs | mount 的 tmpfs 选项 |
type | 卷定义的类型。 可能的值:bind、volume、tmpfs、npipe |
volume | 装载的卷选项 |
属性详细信息
bind
consistency
卷的一致性
consistency?: string
属性值
string
readOnly
指示是否将卷装载为 readOnly。 默认值为 false。
readOnly?: boolean
属性值
boolean
source
装载的源。 对于绑定装载,这是主机路径。
source?: string
属性值
string
target
装载的目标。 对于绑定装载,这是容器中的路径。
target?: string
属性值
string
tmpfs
type
卷定义的类型。 可能的值:bind、volume、tmpfs、npipe
type?: string
属性值
string