OllamaResource.withDataVolume
Method
interface OllamaResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): OllamaResource;}Signature
method
withDataVolume builderAdds a data volume to the Ollama container.
withDataVolume( name?: string, isReadOnly?: boolean): OllamaResourceParameters
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only volume.Returns
OllamaResource Defined on
This method is defined on the following type: