WithBindMount
Method
func (ContainerResource) WithBindMount( source string, target string, options ...*WithBindMountOptions,) ContainerResourceSignature
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().
Applies to
This method applies to the following types: