MountBindOptions

constructor(propagation: MountBindOptions.Propagation? = null, nonRecursive: Boolean? = false, createMountpoint: Boolean? = false, readOnlyNonRecursive: Boolean? = false, readOnlyForceRecursive: Boolean? = false)

Parameters

propagation

A propagation mode with the value [r]private, [r]shared, or [r]slave.

nonRecursive

Disable recursive bind mount.

createMountpoint

Create mount point on host if missing

readOnlyNonRecursive

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.

readOnlyForceRecursive

Raise an error if the mount cannot be made recursively read-only.