你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VolumeDefinition interface

描述容器的卷配置

属性

bind

装载的绑定选项

consistency

卷的一致性

readOnly

指示是否将卷装载为 readOnly。 默认值为 false。

source

装载的源。 对于绑定装载,这是主机路径。

target

装载的目标。 对于绑定装载,这是容器中的路径。

tmpfs

mount 的 tmpfs 选项

type

卷定义的类型。 可能的值:bind、volume、tmpfs、npipe

volume

装载的卷选项

属性详细信息

bind

装载的绑定选项

bind?: BindOptions

属性值

consistency

卷的一致性

consistency?: string

属性值

string

readOnly

指示是否将卷装载为 readOnly。 默认值为 false。

readOnly?: boolean

属性值

boolean

source

装载的源。 对于绑定装载,这是主机路径。

source?: string

属性值

string

target

装载的目标。 对于绑定装载,这是容器中的路径。

target?: string

属性值

string

tmpfs

mount 的 tmpfs 选项

tmpfs?: TmpfsOptions

属性值

type

卷定义的类型。 可能的值:bind、volume、tmpfs、npipe

type?: string

属性值

string

volume

装载的卷选项

volume?: VolumeOptions

属性值