Skip to content
DocsTry Aspire
DocsTry

ContainerResource.withVolume

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withVolume(
target: string,
name?: string,
isReadOnly?: boolean): ContainerResource;
}

Signature

methodwithVolumebuilder
Adds a volume to a container resource.
withVolume(
target: string,
name?: string,
isReadOnly?: boolean): ContainerResource
targetstring
namestringoptional
isReadOnlybooleanoptional= False
ContainerResource

Defined on

This method is defined on the following type: