ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithVolumeMountSetting<ParentT>.withReadOnlyVolumeMountSetting 方法

定义

重载

withReadOnlyVolumeMountSetting(Map<String, String> volumeMountSetting)

Specifies the container group's volume to be mounted by the container instance at a specified mount path.

Mounting an Azure file share as a volume in a container is a two-step process. First, you provide the details of the share as part of defining the container group, then you specify how you wan the volume mounted within one or more of the containers in the group.

withReadOnlyVolumeMountSetting(String volumeName, String mountPath)

Specifies the container group's volume to be mounted by the container instance at a specified mount path.

Mounting an Azure file share as a volume in a container is a two-step process. First, you provide the details of the share as part of defining the container group, then you specify how you wan the volume mounted within one or more of the containers in the group.

withReadOnlyVolumeMountSetting(Map<String, String> volumeMountSetting)

Specifies the container group's volume to be mounted by the container instance at a specified mount path.

Mounting an Azure file share as a volume in a container is a two-step process. First, you provide the details of the share as part of defining the container group, then you specify how you wan the volume mounted within one or more of the containers in the group.

public WithContainerInstanceAttach<ParentT> withReadOnlyVolumeMountSetting(Map<String, String> volumeMountSetting)

参数

volumeMountSetting
Map<String, String>

the name and value pair representing volume names as defined in the volumes of the container group and the local paths the volume will be mounted at

返回

例外

IllegalArgumentException

thrown if volumeName was not defined in the respective container group definition stage.

withReadOnlyVolumeMountSetting(String volumeName, String mountPath)

Specifies the container group's volume to be mounted by the container instance at a specified mount path.

Mounting an Azure file share as a volume in a container is a two-step process. First, you provide the details of the share as part of defining the container group, then you specify how you wan the volume mounted within one or more of the containers in the group.

public WithContainerInstanceAttach<ParentT> withReadOnlyVolumeMountSetting(String volumeName, String mountPath)

参数

volumeName
String

the volume name as defined in the volumes of the container group

mountPath
String

the local path the volume will be mounted at

返回

例外

IllegalArgumentException

thrown if volumeName was not defined in the respective container group definition stage.

适用于