Mount Bind Options
@Serializable
Optional configuration for the bind type.
Parameters
propagation
A propagation mode with the value [r]private, [r]shared, or [r]slave.
non Recursive
Disable recursive bind mount.
create Mountpoint
Create mount point on host if missing
read Only Non Recursive
Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to true in conjunction). Added in v1.44, before that version all read-only mounts were non-recursive by default. To match the previous behaviour this will default to true for clients on versions prior to v1.44.
read Only Force Recursive
Raise an error if the mount cannot be made recursively read-only.
Constructors
Link copied to clipboard
constructor(propagation: MountBindOptions.Propagation? = null, nonRecursive: Boolean? = false, createMountpoint: Boolean? = false, readOnlyNonRecursive: Boolean? = false, readOnlyForceRecursive: Boolean? = false)