Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bind = "bind" Volume = "volume" Tmpfs = "tmpfs" Npipe = "npipe" )
View Source
const ( DefaultMountType = "none" // DefaultPropagationMode is the default propagation of mounts // where user doesn't specify mount propagation explicitly. // See also: https://github.com/moby/moby/blob/v20.10.7/volume/mounts/linux_parser.go#L145 DefaultPropagationMode = "rprivate" )
Variables ¶
This section is empty.
Functions ¶
func UnprivilegedMountFlags ¶ added in v1.3.0
UnprivilegedMountFlags is from https://github.com/moby/moby/blob/v20.10.5/daemon/oci_linux.go#L420-L450
Get the set of mount flags that are set on the mount that contains the given path and are locked by CL_UNPRIVILEGED. This is necessary to ensure that bind-mounting "with options" will not fail with user namespaces, due to kernel restrictions that require user namespace mounts to preserve CL_UNPRIVILEGED locked flags.
Types ¶
type Processed ¶ added in v0.7.3
type Processed struct { Type string Mount specs.Mount Name string // name AnonymousVolume string // anonymous volume name Mode string Opts []oci.SpecOpts }
func ProcessFlagMount ¶ added in v0.17.0
func ProcessFlagMount(s string, volStore volumestore.VolumeStore) (*Processed, error)
func ProcessFlagTmpfs ¶ added in v0.13.0
func ProcessFlagV ¶ added in v0.7.3
func ProcessFlagV(s string, volStore volumestore.VolumeStore, createDir bool) (*Processed, error)
Click to show internal directories.
Click to hide internal directories.