ContainerResource.withBindMount

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withBindMount(
source: string,
target: string,
isReadOnly?: boolean): ContainerResource;
}

Signature

methodwithBindMountbuilder
Adds a bind mount to a container resource.
withBindMount(
source: string,
target: string,
isReadOnly?: boolean): ContainerResource
sourcestringThe source path of the mount. This is the path to the file or directory on the host, relative to the AppHost project directory.
targetstringThe target path where the file or directory is mounted in the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount.
ContainerResource

Defined on

This method is defined on the following type: