Skip to content
DocsTry Aspire
DocsTry

withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface OllamaResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): OllamaResource;
}

Signature

methodwithDataVolumebuilder
Adds a data volume to the Ollama container.
withDataVolume(
name?: string,
isReadOnly?: boolean): OllamaResource
namestringoptional
isReadOnlybooleanoptional= False
OllamaResource

Applies to

This method applies to the following types: