withVolume
Method
interface ContainerResource { // ... omitted for brevity withVolume( target: string, name?: string, isReadOnly?: boolean): ContainerResource;}Signature
method
withVolume builderAdds a volume to a container resource.
withVolume( target: string, name?: string, isReadOnly?: boolean): ContainerResourceParameters
targetstringThe mount path inside the container.namestringoptionalThe volume name. If null, an anonymous volume is created.isReadOnly booleanoptional= FalseWhether the volume is read-only.Returns
ContainerResource Applies to
This method applies to the following types: