Skip to content

Commit 30d79a2

Browse files
authored
Merge pull request #1035 from h-vetinari/rebase_975
config-linux: describe more about rootfs mount propagation (cont'd)
2 parents 6fea737 + 41c3e47 commit 30d79a2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

config-linux.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,17 @@ The following parameters can be specified to set up seccomp:
654654
## <a name="configLinuxRootfsMountPropagation" />Rootfs Mount Propagation
655655

656656
**`rootfsPropagation`** (string, OPTIONAL) sets the rootfs's mount propagation.
657-
Its value is either slave, private, shared or unbindable.
657+
Its value is either `shared`, `slave`, `private` or `unbindable`.
658+
It's worth noting that a peer group is defined as a group of VFS mounts that propagate events to each other.
659+
A nested container is defined as a container launched inside an existing container.
660+
661+
* **`shared`**: the rootfs mount belongs to a new peer group.
662+
This means that further mounts (e.g. nested containers) will also belong to that peer group and will propagate events to the rootfs.
663+
Note this does not mean that it's shared with the host.
664+
* **`slave`**: the rootfs mount receives propagation events from the host (e.g. if something is mounted on the host it will also appear in the container) but not the other way around.
665+
* **`private`**: the rootfs mount doesn't receive mount propagation events from the host and further mounts in nested containers will be isolated from the host and from the rootfs (even if the nested container `rootfsPropagation` option is shared).
666+
* **`unbindable`**: the rootfs mount is a private mount that cannot be bind-mounted.
667+
658668
The [Shared Subtrees][sharedsubtree] article in the kernel documentation has more information about mount propagation.
659669

660670
### Example

0 commit comments

Comments
 (0)