Skip to content
Docs Try Aspire
Docs Try

OllamaResource.withDataVolume

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

Signature

method withDataVolume builder
Adds a data volume to the Ollama container.
withDataVolume(
name?: string,
isReadOnly?: boolean): OllamaResource
name string optional
isReadOnly boolean optional = False
OllamaResource

Defined on

This method is defined on the following type: