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

Applies to

This method applies to the following types: