Skip to content
Docs Try Aspire

withVolume

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withVolume(
target: string,
name?: string,
isReadOnly?: boolean): ContainerResource;
}

Signature

method withVolume builder
Adds a volume
withVolume(
target: string,
name?: string,
isReadOnly?: boolean): ContainerResource
target string
name string optional
isReadOnly boolean optional = False
ContainerResource

Applies to

This function is an extension method on the following types: