ContainerResource.WithBindMount
Method
type ContainerResource interface { // ... omitted for brevity WithBindMount( source string, target string, options ...*WithBindMountOptions, ) ContainerResource}Signature
method
WithBindMount builderAdds a bind mount to a container resource.
WithBindMount( source string, target string, options ...*WithBindMountOptions,) ContainerResourceParameters
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.options...*WithBindMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithBindMountOptions argument.
IsReadOnly *boolA flag that indicates if this is a read-only mount.Returns
ContainerResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: